Nexmo / nexmo-laravel

Add Vonage functionality such as SMS and voice calling to your Laravel app with this Laravel Service Provider.
MIT License
317 stars 79 forks source link

nexmo/client 0.4.0 error #53

Closed AbingPj closed 3 years ago

AbingPj commented 3 years ago

After Composer Update,..

`Problem 1

Any idea how to solve of this? we are using laravel 5.7

dragonmantank commented 3 years ago

Unfortunately 0.4.0 is over 3 years old and is unsupported.

I would try updating nexmo/laravel to ^2.0 and see if that works first. I think it should still work fine with Laravel 5.7.

AbingPj commented 3 years ago

Unfortunately 0.4.0 is over 3 years old and is unsupported.

I would try updating nexmo/laravel to ^2.0 and see if that works first. I think it should still work fine with Laravel 5.7.

what should we do? Im just the new developer of the project, It was pass to me. I dont know how they set it. Should I Update the code? or only the version?

By the way, thanks for your response.

dragonmantank commented 3 years ago

The easiest thing to try is just upgrade our package and see how that goes:

composer require -W nexmo/laravel:^2.0

That will upgrade our package and any dependencies that we require. You will then need to test your application to make sure that everything still functions as you intend. The upgrade may require internal changes to your applications code as there have been quite a few changes between your installed version and the newer versions of our SDK. Anywhere our code is referenced you'll want to test and see if anything fails, and fix accordingly.

If the composer command fails or has any other incompatibilities, you'll need to do the same and upgrade any other blockers. Worst case you can look into something like https://laravelshift.com/ which can help update your Laravel version and underlying dependencies (Laravel Shift has no affiliation with Vonage or this package, I just know they do good work on this front).

Hope that helps! If you can get upgraded and run into any other issues, feel free to open a new issue.