Skip to content
Advertisement

Laravel 8.55 with Fortify showing Class ‘AppProvidersUser’ not found while login

I have installed laravel 8.55.0 and installed fortify with it for the authentication handling. Registration is working fine and login also validation is working fine. but when I enter email and password (either right or wrong) it’s displaying Class ‘AppProvidersUser’ not found I checked all files but cannot find the problem, can you guys please suggest a good solution for the problem:

Validation is working fortify is handling the validation

Error I am getting this error

The error says there is the problem with this line error code

Advertisement

Answer

in AppProvidersFortifyServiceProvider.php add this line:

use AppModelsUser;
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement