We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a user, and assign a role $user->assignRole('Admin') and in thins role, has many permissions assigned, with view_users for example
$user->assignRole('Admin')
In this case, i have a user with permissions assigned by roles
On the view @can('view_users') returns false, but the user has this permission
@can('view_users')
When i use $user->permissions returns empty; When i use $user->getAllPermissions() get my permissions
$user->permissions
$user->getAllPermissions()
I'm doing anything wrong? How can i use the method @can for it?
Sorry for my bad english
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a user, and assign a role
$user->assignRole('Admin')
and in thins role, has many permissions assigned, with view_users for exampleIn this case, i have a user with permissions assigned by roles
On the view
@can('view_users')
returns false, but the user has this permissionWhen i use
$user->permissions
returns empty;When i use
$user->getAllPermissions()
get my permissionsI'm doing anything wrong? How can i use the method @can for it?
Sorry for my bad english
The text was updated successfully, but these errors were encountered: