sebdesign / laravel-state-machine

Winzou State Machine service provider for Laravel
MIT License
327 stars 57 forks source link

Illuminate\Contracts\Container\BindingResolutionException : Unresolvable dependency resolving [Parameter #0 [ <required> array $configs ]] in class SM\Factory\Factory #23

Closed GonzaloGPF closed 5 years ago

GonzaloGPF commented 5 years ago

Hello! FIrst of all, thx for this package, I really like it! However, some days ago, it started failing... I don't know why. When I try to instantiate with dependency injection, in my controller it throws an Exception about binding resolution.

Illuminate\Contracts\Container\BindingResolutionException : Unresolvable dependency resolving [Parameter #0 [ <required> array $configs ]] in class SM\Factory\Factory

I cannot use the Facade either, when I placeStateMachine::get() It says that 'get()' method does not exist.

I would like to keep using thiss nice pakage but I dont know how to solve this. Thx!

GonzaloGPF commented 5 years ago

Just was a problem with my ide-helper:generate... Sorry. I Just clean up everythinh running php artisan ide-helper:generate and all works fine again.