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
$role = Defender::createRole('superadmin');
$roleSuperadmin = Defender::findRole('superadmin');
$permission = Defender::createPermission('user.create', 'Create Users');
$roleSuperadmin->attachPermission($permission);
//... And so on with all the roles and permissions
I check the database and all the records about the roles and the permissions seems to be created in the right way.
When i go to one of the routes i get:
Artesaos\Defender\Exceptions\ForbiddenException
You don't have permission to access this resource
The text was updated successfully, but these errors were encountered:
Firts of all i create roles and permissions:
Then i set the routes middlewares:
I check the database and all the records about the roles and the permissions seems to be created in the right way.
When i go to one of the routes i get:
The text was updated successfully, but these errors were encountered: