laravel-notification-channels / twilio

Twilio notifications channel for Laravel
https://laravel-notification-channels.com
227 stars 36 forks source link

Unresolvable dependency resolving [Parameter #0 [ <required> $sid ]] in class Services_Twilio #27

Closed alexc-hollywood closed 7 years ago

alexc-hollywood commented 7 years ago

Posting again as the original Laravel issue has been closed.

Laravel 5.4 "laravel-notification-channels/twilio": "^1.0" Config file (services) is fine, as is .env.

Error:

[Illuminate\Contracts\Container\BindingResolutionException]                                    
Unresolvable dependency resolving [Parameter #0 [ <required> $sid ]] in class Services_Twilio

Stack Trace:

[2017-03-15 22:13:57] local.ERROR: Illuminate\Contracts\Container\BindingResolutionException: Unresolvable dependency resolving [Parameter #0 [ <required> $sid ]] in class Services_Twilio in /Users/Alex/WEBHOSTS/FHMatchL5/vendor/laravel/framework/src/Illuminate/Container/Container.php:888

Stack trace:

[2017-03-15 22:13:57] local.ERROR: Illuminate\Contracts\Container\BindingResolutionException: Unresolvable dependency resolving [Parameter #0 [ <required> $sid ]] in class Services_Twilio in /L5/vendor/laravel/framework/src/Illuminate/Container/Container.php:888

#0 /L5/vendor/laravel/framework/src/Illuminate/Container/Container.php(826): Illuminate\Container\Container->unresolvablePrimitive(Object(ReflectionParameter))
#1 /L5/vendor/laravel/framework/src/Illuminate/Container/Container.php(779): Illuminate\Container\Container->resolvePrimitive(Object(ReflectionParameter))
#2 /L5/vendor/laravel/framework/src/Illuminate/Container/Container.php(746): Illuminate\Container\Container->resolveDependencies(Array)
#3 /L5/vendor/laravel/framework/src/Illuminate/Container/Container.php(598): Illuminate\Container\Container->build('Services_Twilio')
#4 /L5/vendor/laravel/framework/src/Illuminate/Container/Container.php(567): Illuminate\Container\Container->resolve('Services_Twilio')
#5 /L5/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(702): Illuminate\Container\Container->make('Services_Twilio')
#6 /L5/vendor/laravel/framework/src/Illuminate/Container/Container.php(840): Illuminate\Foundation\Application->make('Services_Twilio')
jamatheney commented 7 years ago

I am having the same issue

REBELinBLUE commented 7 years ago

I fixed this a while ago, it was merged into master but doesn't seem that a new version has been released

REBELinBLUE commented 7 years ago

Oh, actually looks like v2 has been released with the fix

jamatheney commented 7 years ago

updating to v2 has solved the problem for me. thanks.

zohaib-zix commented 6 years ago

still have the same issue