Method |
Description |
|
attachPermission ( array | Artesaos\Defender\Permission $permission, array $options = [] ) |
Attach the given permission. |
|
detachPermission ( Artesaos\Defender\Permission $permission ) : integer |
Detach the given permission from the model. |
|
existPermission ( string $permissionName ) : boolean |
Get the a permission using the permission name. |
|
extendPermission ( string $permission, array $options ) : boolean | null |
Extend an existing temporary permission. |
|
revokeExpiredPermissions ( ) : integer | null |
Revoke expired user permissions. |
|
revokePermission ( Artesaos\Defender\Permission $permission ) : integer |
Alias to the detachPermission method. |
|
revokePermissions ( ) : integer |
Revoke all user permissions. |
|
syncPermissions ( array $permissions ) : array |
Sync the given permissions. |
|