Error on → composer require tcg/voyager
Throw me to this error
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'App\User' not found
Searching on log this is the explanation error:
local.ERROR: Class 'App\User' not found {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class 'App\User' not found at /var/www/mytest.local/vendor/tcg/voyager/src/VoyagerServiceProvider.php:87)
My local User.php model file is inside this folder app/Models/ with this namespace App\Models
and I already changed the auth.php config
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\User::class,
],
Of course, login works fine.
What can I do?
Have you changed user.namespace at config\voyager.php file?
Confirm that. It should work.
GREAT!
This issue has been closed for 3-4 months. Please refrain from commenting on closed issues, and instead open your own or ask on our Slack group
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Most helpful comment
Have you changed
user.namespaceatconfig\voyager.phpfile?Confirm that. It should work.