PHP Class Sentinel\Models\User

Inheritance: extends Cartalyst\Sentry\Users\Eloquent\User, implements Illuminate\Contracts\Auth\Authenticatable, use trait Venturecraft\Revisionable\RevisionableTrait
Show file Open project: rydurham/sentinel

Public Methods

Method Description
boot ( ) Set the Sentry User Model Hasher to be the same as the configured Sentry Hasher
getAuthIdentifier ( ) : mixed Get the unique identifier for the user.
getAuthIdentifierName ( ) : string Get the name of the unique identifier for the user.
getAuthPassword ( ) : string Get the password for the user.
getHashAttribute ( ) : mixed Use a mutator to derive the appropriate hash for this user
getRememberToken ( ) : string Get the token value for the "remember me" session.
getRememberTokenName ( ) : string Get the column name for the "remember me" token.
getStatusAttribute ( ) : [type] Use an accessor method to get the user's status from the throttle table
setRememberToken ( string $value ) : void Set the token value for the "remember me" session.
throttle ( ) : Cartalyst\Sentry\Throttling\Eloquent\Throttle | null The throttle object for this user, if one exists

Method Details

boot() public static method

Set the Sentry User Model Hasher to be the same as the configured Sentry Hasher
public static boot ( )

getAuthIdentifier() public method

Get the unique identifier for the user.
public getAuthIdentifier ( ) : mixed
return mixed

getAuthIdentifierName() public method

Get the name of the unique identifier for the user.
public getAuthIdentifierName ( ) : string
return string

getAuthPassword() public method

Get the password for the user.
public getAuthPassword ( ) : string
return string

getHashAttribute() public method

Use a mutator to derive the appropriate hash for this user
public getHashAttribute ( ) : mixed
return mixed

getRememberToken() public method

Get the token value for the "remember me" session.
public getRememberToken ( ) : string
return string

getRememberTokenName() public method

Get the column name for the "remember me" token.
public getRememberTokenName ( ) : string
return string

getStatusAttribute() public method

Use an accessor method to get the user's status from the throttle table
public getStatusAttribute ( ) : [type]
return [type]

setRememberToken() public method

Set the token value for the "remember me" session.
public setRememberToken ( string $value ) : void
$value string
return void

throttle() public method

The throttle object for this user, if one exists
public throttle ( ) : Cartalyst\Sentry\Throttling\Eloquent\Throttle | null
return Cartalyst\Sentry\Throttling\Eloquent\Throttle | null