FatalErrorException in EloquentUserProvider.php line 126: Class '\App\User' not found
So, I really wasn't keen on having all the models at the root of the App folder in laravel 5.1.
So I created a new folder and placed all the model php files within it: \App\Models...
I altered the auth controller to use the new 'use App\Models\User;' and corrected all the model files within the model folder..
However when i load the page I get the error mentioned above.
Is it possible to tell Laravel that I have moved the User.php model?
Change all the references of App\User to App\Users\Models in the code with a simple search in the document you'll be ok. Then autoload composer
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community