Target [Interface] is not instantiable while building [Controller]
I’m working with Laravel 9 and I have a Controller like this: use App\Repositories\HomeRepositoryInterface; class HomeController extends Controller { private $homeRespository; public function __construct(HomeRepositoryInterface $homeRepository) { $this->homeRespository = $homeRepository; } … And here is the HomeRepositoryInterface: <?php namespace App\Repositories; interface HomeRepositoryInterface { public function newest(); } And this is the HomeRepository itself: <?php namespace App\Repositories;… Read More Target [Interface] is not instantiable while building [Controller]