Свойство | Тип | Описание | |
---|---|---|---|
$fillable | array | The attributes that are mass assignable. | |
$hidden | array | The attributes excluded from the model's JSON form. | |
$permissions | array | This holds the user's permissions when loaded. | |
$table | string | The database table used by the model. |
Метод | Описание | |
---|---|---|
attachRole ( |
Attach a role to this user. | |
attachRoleId ( $id ) | Attach a role id to this user. | |
avatar ( ) : |
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 ( ) : |
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. |
public attachRole ( |
||
$role |
public avatar ( ) : |
||
Результат |
public static getDefault ( ) : |
||
Результат |
public getEditUrl ( ) : string | ||
Результат | string |
public getProfileUrl ( ) : mixed | ||
Результат | mixed |
public getShortName ( integer $chars = 8 ) : string | ||
$chars | integer | |
Результат | string |
public permissions ( boolean $cache = true ) : Illuminate\Database\Eloquent\Relations\HasManyThrough | ||
$cache | boolean | |
Результат | Illuminate\Database\Eloquent\Relations\HasManyThrough |
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany | ||
Результат | Illuminate\Database\Eloquent\Relations\BelongsToMany |
public sendPasswordResetNotification ( string $token ) : void | ||
$token | string | |
Результат | void |
public socialAccounts ( ) : Illuminate\Database\Eloquent\Relations\HasMany | ||
Результат | Illuminate\Database\Eloquent\Relations\HasMany |
protected array $fillable | ||
Результат | array |
protected array $permissions | ||
Результат | array |
protected string $table | ||
Результат | string |