You should not use concrete classes, instead create e.g. UserRepository(interface) and UserRepositoryImpl and then in bind them together in AppServiceProvider, and inject them into your controller in constructor using service container, e.g. :
public function __construct(UserRepository $userRepository) { $this->userRepository = $userRepository; }
You should not use concrete classes, instead create e.g. UserRepository(interface) and UserRepositoryImpl and then in bind them together in AppServiceProvider, and inject them into your controller in constructor using service container, e.g. :
public function __construct(UserRepository $userRepository) { $this->userRepository = $userRepository; }