Method | Description | |
---|---|---|
assignRole ( string $role ) : mixed | Assign the given role to the user. | |
hasPermission ( |
Determine if the user may perform the given permission. | |
hasRole ( mixed $role ) : boolean | Determine if the user has the given role. | |
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | A user may have multiple roles. |
public assignRole ( string $role ) : mixed | ||
$role | string | |
return | mixed |
public hasPermission ( |
||
$permission | ||
return | boolean |
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
return | Illuminate\Database\Eloquent\Relations\BelongsToMany |