serenysoft / nova-permissions

Laravel Nova 4 Roles & Permissions
72 stars 27 forks source link

what is the viewAnyRole ? after setup package #1

Closed gerasart closed 1 year ago

gerasart commented 1 year ago

There is no permission named viewAnyRole for guard web. {"userId":1,"exception":"[object] (Spatie\Permission\Exceptions\PermissionDoesNotExist(code: 0): There is no permission named viewAnyRole for guard web. at /Users/maxgrasymenko/www/wp-kama2/vendor/spatie/laravel-permission/src/Exceptions/PermissionDoesNotExist.php:11)

gerasart commented 1 year ago

sorry forgot change in seeder

        $user = User::whereEmail('my_email@gmail.com')->first(); 
         $user->assignRole('super-admin');
     need think about it and create that works automaticaly.