You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New fresh laravel Installation (v9.22.1)
Setting .env database correctly.
run command: composer require itstructure/laravel-rbac "~3.0.6" php artisan rbac:publish
After this, i don'touch anything in config/rbac.php, because my User model is in the standard position (app\Models\User), but if i run php artisan rbac:database, return this error: 2020_07_11_151834_create_user_role_table ....................................................................... 1ms FAIL Failed! User Model class must be implemented from "Itstructure\LaRbac\Interfaces\RbacUserInterface".
All files are untouched from standard installation.
The text was updated successfully, but these errors were encountered:
Yes, your User model must be implemented by Itstructure\LaRbac\Interfaces\RbacUserInterface interface and must contain its methods.
And use Itstructure\LaRbac\Traits\Administrable trait in a User model.
Status:
New fresh laravel Installation (v9.22.1)
Setting .env database correctly.
run command:
composer require itstructure/laravel-rbac "~3.0.6"
php artisan rbac:publish
After this, i don'touch anything in
config/rbac.php
, because my User model is in the standard position (app\Models\User), but if i runphp artisan rbac:database
, return this error:2020_07_11_151834_create_user_role_table ....................................................................... 1ms FAIL Failed! User Model class must be implemented from "Itstructure\LaRbac\Interfaces\RbacUserInterface".
All files are untouched from standard installation.
The text was updated successfully, but these errors were encountered: