I have moved the User model from the default app directory into app/Models.
I have updated the namespace in User to namespace App\Models; but I am getting this error:
FatalErrorException in EloquentUserProvider.php line 122: Class '\App\User' not found   I have the correct entry in my json file:
"autoload": {     "classmap": [         "database",         "app/Modules",         "app/Models"     ],     "psr-4": {         "App\\": "app/",         "Modules\\": "app/Modules/"     } },   What have I missed?
You need to update your config/auth.php file. Change 'model' => 'App\User' to 'model' => 'App\Models\User'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With