GithubHelp home page GithubHelp logo

Comments (13)

leandrit1 avatar leandrit1 commented on June 3, 2024 1

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.

atapatel avatar atapatel commented on June 3, 2024

+1 i am also facing this issue.

from nexmo-laravel.

tjlytle avatar tjlytle commented on June 3, 2024

@aliuwahab21 @atapatel see this related issue.

from nexmo-laravel.

leandrit1 avatar leandrit1 commented on June 3, 2024

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.

tjlytle avatar tjlytle commented on June 3, 2024

@LeandritGo What version of Laravel are you using?

from nexmo-laravel.

leandrit1 avatar leandrit1 commented on June 3, 2024

from nexmo-laravel.

leandrit1 avatar leandrit1 commented on June 3, 2024

Are there any news regarding the issue?

from nexmo-laravel.

tjlytle avatar tjlytle commented on June 3, 2024

@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.

tjlytle avatar tjlytle commented on June 3, 2024

@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.

afolson avatar afolson commented on June 3, 2024

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:

screenshot 2017-06-18 13 54 57

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.

tjlytle avatar tjlytle commented on June 3, 2024

@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.

mheap avatar mheap commented on June 3, 2024

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.

erickbrz avatar erickbrz commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.