Method |
Description |
|
attachRole ( Role $role ) |
Attach a role to this user. |
|
attachRoleId ( $id ) |
Attach a role id to this user. |
|
avatar ( ) : BelongsTo |
Get the avatar for the user. |
|
can ( $permissionName ) : boolean |
Check if the user has a particular permission. |
|
getAvatar ( integer $size = 50 ) : string |
Returns the user's avatar, |
|
getDefault ( ) : User |
Returns the default public user. |
|
getEditUrl ( ) : string |
Get the url for editing this user. |
|
getProfileUrl ( ) : mixed |
Get the url that links to this user's profile. |
|
getShortName ( integer $chars = 8 ) : string |
Get a shortened version of the user's name. |
|
hasRole ( $role ) : mixed |
Check if the user has a role. |
|
hasSocialAccount ( boolean | string $socialDriver = false ) : boolean |
Check if the user has a social account,
If a driver is passed it checks for that single account type. |
|
isDefault ( ) : boolean |
Check if the user is the default public user. |
|
permissions ( boolean $cache = true ) : Illuminate\Database\Eloquent\Relations\HasManyThrough |
Get all permissions belonging to a the current user. |
|
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany |
The roles that belong to the user. |
|
sendPasswordResetNotification ( string $token ) : void |
Send the password reset notification. |
|
socialAccounts ( ) : Illuminate\Database\Eloquent\Relations\HasMany |
Get the social account associated with this user. |
|