entrust icon indicating copy to clipboard operation
entrust copied to clipboard

symfony component debug exception fatalerrorexception .please help

Open moazzam-r opened this issue 7 years ago • 1 comments

I have installed Entrust on laravel 5.3 . after instalation it does not migration.it give error as defined upper. C:\xampp\htdocs\noissue>php artisan entrust:migration

Tables: roles, role_user, permissions, permission_role A migration that creates 'roles', 'role_user', 'permissions', 'permission_role' tables will be created in database/migrations directory

Proceed with the migration creation? [Yes|no] (yes/no) [yes]:

yes

Creating migration...

[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Of\Your\User\Model\User' not found

moazzam-r avatar Aug 13 '17 07:08 moazzam-r

Go to config/auth.php and change Namespace\Of\Your\User\Model\User::class to App\User::class such as this:

'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
            'table' => 'users',

        ],

it will work :)

mohammadreza33 avatar Aug 01 '19 07:08 mohammadreza33