laravel-ioc

Laravel 5 - Interface is not instantiable

坚强是说给别人听的谎言 提交于 2019-12-18 11:01:09
问题 I know that this question was asked so many times, but none of answers helped me. I'm getting exception in Laravel 5 BindingResolutionException in Container.php line 785: Target [App\Contracts\CustomModelInterface] is not instantiable. What I've done without success: Register App\Providers\AppRepositoryProvider in app.php providers php artisan clear-compiled Everything works if I replace interfaces on repositories in MyService, but I feel that it's wrong (should it be handled by IoC container

Laravel 5 - Interface is not instantiable

為{幸葍}努か 提交于 2019-12-18 11:01:06
问题 I know that this question was asked so many times, but none of answers helped me. I'm getting exception in Laravel 5 BindingResolutionException in Container.php line 785: Target [App\Contracts\CustomModelInterface] is not instantiable. What I've done without success: Register App\Providers\AppRepositoryProvider in app.php providers php artisan clear-compiled Everything works if I replace interfaces on repositories in MyService, but I feel that it's wrong (should it be handled by IoC container