메소드 |
설명 |
|
allow ( string $nameOrId ) : boolean |
Check if 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 |
|
attachRole ( mixed $role ) : void |
Alias to eloquent many-to-many relation's attach() method. |
|
attachRoles ( mixed $roles ) : void |
Attach multiple roles to a user |
|
detachRole ( mixed $role ) : void |
Alias to eloquent many-to-many relation's detach() method. |
|
detachRoles ( mixed $roles ) : void |
Detach multiple roles from a user |
|
hasPermission ( $nameOrId ) : boolean |
|
|
hasPermissions ( $permissions, boolean $needsAll = false ) : boolean |
|
|
hasRole ( string $nameOrId ) : boolean |
Checks if the user has a Role by its name or id. |
|
hasRoles ( $roles, $needsAll = false ) : boolean |
Checks to see if user has array of roles |
|