Class App\Repositories\UserRepository does not exist
Probably a namespace issue
Check the path of your UserRepository
file class. It should be:
app/Repositories/UserRepository.php
And inside the class file you need to use this namespace:
namespace App/Repositories;
This should work
you would want to do composer dump-autoload
and it will fix your issue given that you have all your namespaces / class names correctly
The strange thing I had when such error occurred is that I had space between keyword namespace
and App\Repositories;
Once removed, it all worked fine!