I am having this error when moving User.php
to Models/User.php
local.ERROR: Symfony\\Component\\Debug\\Exception\\FatalThrow
This problem is one of the config
and cache
settings, and by executing the following commands in the terminal, 90% of the problem will be fixed
config:clear
cache:clear
config:cache
I fixed the problem changing the use App\User;
to use MyAppName\User;
You need to change App\User to App\Models\User in config/auth.php
if you are using user.php model file into folder Models/user.php then you need to change in follwing file so You will not get any Error
where to change if we create Model Folder in App\http ??
changer in folowing path ---
1 Config - - auth.php - search for users key change ---> app\user TO app\Models\user
2 venedor/composer/ -autoload_classmap.php ----> BAse path (app\user TO app\Models\user) -autoload_static.php ----> BAse path (app\user TO app\Models\user)
i just change use app\User to use App\User and it works
Check if your importations represent the exact name of your class. I found in one of my controllers I was imported App\user
with "u" on lowercase instead of App\User
with 'u' in uppercase