Voyager: App\User not found

Created on 11 Nov 2017  Â·  4Comments  Â·  Source: the-control-group/voyager

  • Laravel Version: 5.5.20
  • Voyager Version: 1.0.7
  • PHP Version: 7.0.25
  • Database Driver & Version:

Description:

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?

question

Most helpful comment

Have you changed user.namespace at config\voyager.php file?
Confirm that. It should work.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craigb88 picture craigb88  Â·  3Comments

popica80 picture popica80  Â·  3Comments

zzpwestlife picture zzpwestlife  Â·  3Comments

iwasherefirst2 picture iwasherefirst2  Â·  3Comments

rayqiri picture rayqiri  Â·  3Comments