Method |
Description |
|
attachPermission ( object | array $permission ) : void |
Attach permission to current role. |
|
attachPermissions ( mixed $permissions ) : void |
Attach multiple permissions to current role. |
|
detachPermission ( object | array $permission ) : void |
Detach permission form current role. |
|
detachPermissions ( mixed $permissions ) : void |
Detach multiple permissions from current role |
|
permissions ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany |
Many-to-Many relations with the permission model. |
|
savePermissions ( mixed $inputPermissions ) : void |
Save the inputted permissions. |
|
users ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany |
Many-to-Many relations with the user model. |
|