Свойство | Type | Description | |
---|---|---|---|
$attachOne | |||
$belongsToMany | Relations | ||
$loginAttribute | |||
$rules | Validation rules |
Свойство | Type | Description | |
---|---|---|---|
$dates | |||
$fillable | The attributes that are mass assignable. | ||
$purgeable | Purge attributes from data set. | ||
$table | The database table used by the model. |
Méthode | Description | |
---|---|---|
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. |
Méthode | Description | |
---|---|---|
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 | |
Résultat | void |
public beforeValidate ( ) : void | ||
Résultat | void |
public convertToRegistered ( $sendNotification = true ) : void | ||
Résultat | void |
public static findByEmail ( $email ) : self | ||
Résultat | self |
protected generatePassword ( ) : void | ||
Résultat | void |
public getAvatarThumb ( $size = 25, $options = null ) |
public getLastSeen ( ) : Carbon\Carbon | ||
Résultat | Carbon\Carbon |
public getLoginName ( ) : string | ||
Résultat | string |
protected getNotificationVars ( ) : array | ||
Résultat | array |
public getPersistCode ( ) : string | ||
Résultat | string |
protected sendInvitation ( ) : void | ||
Résultat | void |
public touchLastSeen ( ) : void | ||
Résultat | void |