Method |
Description |
|
attachPermission ( RolePermission $permission ) |
Add a permission to this role. |
|
detachPermission ( RolePermission $permission ) |
Detach a single permission from this role. |
|
getRole ( $roleName ) : Role |
Get the role object for the specified role. |
|
getSystemRole ( $roleName ) : Role |
Get the role object for the specified system role. |
|
hasPermission ( $permissionName ) : boolean |
Check if this role has a permission. |
|
jointPermissions ( ) : Illuminate\Database\Eloquent\Relations\HasMany |
Get all related JointPermissions. |
|
permissions ( ) |
The RolePermissions that belong to the role. |
|
users ( ) |
The roles that belong to the role. |
|
visible ( ) : mixed |
Get all visible roles |
|