Comments (13)
I fixed my issue by running php artisan config:clear , it took me a bunch of time as I ran cache:clear and was not thinking of using config:clear.
from nexmo-laravel.
+1 i am also facing this issue.
from nexmo-laravel.
@aliuwahab21 @atapatel see this related issue.
from nexmo-laravel.
Hi @tjlytle , I am having the same problem, and furthermore I have noticed that the nexmo.php even though I followed all the steps, when I run php artisan vendor:publish the nexmo.php file can not be found on the config/nexmo.php as we see it in some tutorials but we find it just in the vendor/nexmo/laravel/config/nexmo.php
Target [Nexmo\Client\Credentials\CredentialsInterface] is not instantiable while building [Nexmo\Client].
from nexmo-laravel.
@LeandritGo What version of Laravel are you using?
from nexmo-laravel.
from nexmo-laravel.
Are there any news regarding the issue?
from nexmo-laravel.
@LeandritGo I can't replicate, but if it's not creating config/nexmo.php
just copy the file from vendor/nexmo/laravel/config/nexmo.php
to your config directory.
And if artisan vendor:publish
isn't creating the config file, seems like there's something missing in your config/app.php
(Laravel doesn't know about the Nexmo Service Provider).
from nexmo-laravel.
@afolson See @enasellithy's comment in the closed thread (#3). I can't replicate unless I drop the client from the providers config. Any ideas? I'm sure there could be better error handling as well.
from nexmo-laravel.
I tried just now and was unable to reproduce on L5.3 or L5.4 unless I dropped the client from the providers array in config/app.php
. Additionally, I was able to verify that artisan vendor:publish
puts a nexmo.php
file in the config directory.
It seems like people are using various versions of the Laravel package AND the client, or possibly just using nexmo/client
instead of nexmo/laravel
. Would someone mind running composer update nexmo/laravel
and making sure that "nexmo/laravel": "^0.4.0"
appears in composer.json
and that you see a block similar to this in composer.lock
:
Note that nexmo/laravel
is pulling in nexmo/client
and they have the same version number here. In theory, adding/removing packages via composer should re-generate the autoload file, but for good measure you may want to run composer dump-auto
just in case.
If it's still not working after all of that we can debug deeper 🐛
from nexmo-laravel.
@afolson Wonder if there's a way to catch that (including nexmo/client
but trying to invoke using the service provider, and provide a better error message.
from nexmo-laravel.
As we've not been able to reproduce this, I'm going to close the issue. We can link and reopen in future if required.
from nexmo-laravel.
solved for me, i had in my config/nexmo.php ('signature_secret' => xxxxxx), after deleted the line, send sms!
from nexmo-laravel.
Related Issues (20)
- Nexmo Issue with getting api_key/secret HOT 8
- Package zendframework/zend-diactoros is abandoned HOT 1
- Laravel 8 compatibility HOT 6
- Vonage Voyagers application: Create a more detailed SMS log HOT 6
- Migrate to Vonage/vonage-php-sdk-core before 10/01/2021 HOT 2
- nexmo/client 0.4.0 error HOT 3
- Agrinnovation
- @new Verification returns an exception HOT 7
- Ambigious Class Resolution HOT 2
- Using Nexmo in Laravel with Multi-tenancy HOT 2
- web monetization
- Missing ability to search landline-toll-free HOT 8
- Error sending SMS HOT 2
- Error while checking PIN HOT 1
- Larastan warnings HOT 1
- Upgrade vonage/client HOT 2
- Support Laravel 9 HOT 8
- Send SMS for two different phone numbers HOT 1
- Is Inbound Message concatenation supported? HOT 1
- Support Laravel 9 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexmo-laravel.