Свойство | Тип | Описание | |
---|---|---|---|
$attachOne | |||
$belongsToMany | Relations | ||
$loginAttribute | |||
$rules | Validation rules |
Свойство | Тип | Описание | |
---|---|---|---|
$dates | |||
$fillable | The attributes that are mass assignable. | ||
$purgeable | Purge attributes from data set. | ||
$table | The database table used by the model. |
Метод | Описание | |
---|---|---|
afterCreate ( ) : void | After create event | |
afterDelete ( ) : void | After delete event | |
afterLogin ( ) : void | After login event | |
attemptActivation ( string $code ) : void | Sends the confirmation email to a user, after activating. | |
ban ( ) : void | Ban this user, preventing them from signing in. | |
beforeValidate ( ) : void | Before validation event | |
convertToRegistered ( $sendNotification = true ) : void | Converts a guest user to a registered one and sends an invitation notification. | |
findByEmail ( $email ) : self | Looks up a user by their email address. | |
getAvatarThumb ( $size = 25, $options = null ) | Returns the public image file path to this user's avatar. | |
getLastSeen ( ) : Carbon\Carbon | Returns the date this user was last seen. | |
getLoginName ( ) : string | Returns the name for the user's login. | |
getPersistCode ( ) : string | Gets a code for when the user is persisted to a cookie or session which identifies the user. | |
isBanned ( ) : boolean | Check if the user is banned. | |
isOnline ( ) : boolean | Returns true if the user has been active within the last 5 minutes. | |
scopeFilterByGroup ( $query, $filter ) | ||
scopeIsActivated ( $query ) | ||
touchLastSeen ( ) : void | Checks if the user has been seen in the last 5 minutes, and if not, updates the last_seen timestamp to reflect their online status. | |
unban ( ) : void | Remove the ban on this user. |
Метод | Описание | |
---|---|---|
generatePassword ( ) : void | Assigns this user with a random password. | |
getNotificationVars ( ) : array | Returns the variables available when sending a user notification. | |
sendInvitation ( ) : void | Sends an invitation to the user using template "rainlab.user::mail.invite". |
public attemptActivation ( string $code ) : void | ||
$code | string | |
Результат | void |
public beforeValidate ( ) : void | ||
Результат | void |
public convertToRegistered ( $sendNotification = true ) : void | ||
Результат | void |
public static findByEmail ( $email ) : self | ||
Результат | self |
protected generatePassword ( ) : void | ||
Результат | void |
public getAvatarThumb ( $size = 25, $options = null ) |
public getLastSeen ( ) : Carbon\Carbon | ||
Результат | Carbon\Carbon |
public getLoginName ( ) : string | ||
Результат | string |
protected getNotificationVars ( ) : array | ||
Результат | array |
public getPersistCode ( ) : string | ||
Результат | string |
protected sendInvitation ( ) : void | ||
Результат | void |
public touchLastSeen ( ) : void | ||
Результат | void |