entrust
entrust copied to clipboard
symfony component debug exception fatalerrorexception .please help
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
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 :)