메소드 |
설명 |
|
allow ( string $permission ) : boolean |
Check if the current user has a permission by its name or id |
|
allowMultiple ( $permissions, $needsAll = false ) : boolean |
Check an array of permissions and whether or not all are required to continue |
|
guest ( ) : mixed |
Return if the current session user is a guest or not |
|
hasPermission ( $permission ) : boolean |
|
|
hasPermissions ( $permissions, $needsAll = false ) : boolean |
|
|
hasRole ( string $role ) : boolean |
Checks if the current user has a Role by its name or id |
|
hasRoles ( $roles, boolean $needsAll = false ) : boolean |
Checks if the user has either one or more, or all of an array of roles |
|
id ( ) : mixed |
Get the currently authenticated user's id |
|
loginUsingId ( $id ) : mixed |
|
|
logout ( ) : mixed |
|
|
user ( ) |
Get the currently authenticated user or null. |
|