laravel target is not instantiable while building

Solutions on MaxInterview for laravel target is not instantiable while building by the best coders in the world

showing results for - "laravel target is not instantiable while building"
Heston
26 Jan 2020
1// 1) Make sure the service Provider is listed in 
2// 	"config->app-> array of providers"
3
4// 2) Bind interface & concrete class 
5$this->app->bind(MyInterface::class, MyRepository::class);
6
7// 3) Clear Config Cache
8php artisan config:cache