class EloquentUserProvider implements UserProvider (View source)

Methods

void
__construct( Hasher $hasher, string $model)

Create a new database user provider.

retrieveById( mixed $identifier)

Retrieve a user by their unique identifier.

retrieveByToken( mixed $identifier, string $token)

Retrieve a user by their unique identifier and "remember me" token.

void
updateRememberToken( Authenticatable $user, string $token)

Update the "remember me" token for the given user in storage.

retrieveByCredentials( array $credentials)

Retrieve a user by the given credentials.

bool
validateCredentials( Authenticatable $user, array $credentials)

Validate a user against the given credentials.

createModel()

Create a new instance of the model.

getHasher()

Gets the hasher implementation.

$this
setHasher( Hasher $hasher)

Sets the hasher implementation.

string
getModel()

Gets the name of the Eloquent user model.

$this
setModel( string $model)

Sets the name of the Eloquent user model.

Details

at line line 33
void __construct( Hasher $hasher, string $model)

Create a new database user provider.

Parameters

Hasher $hasher
string $model

Return Value

void

at line line 45
Authenticatable|null retrieveById( mixed $identifier)

Retrieve a user by their unique identifier.

Parameters

mixed $identifier

Return Value

Authenticatable|null

at line line 57
Authenticatable|null retrieveByToken( mixed $identifier, string $token)

Retrieve a user by their unique identifier and "remember me" token.

Parameters

mixed $identifier
string $token

Return Value

Authenticatable|null

at line line 74
void updateRememberToken( Authenticatable $user, string $token)

Update the "remember me" token for the given user in storage.

Parameters

Authenticatable $user
string $token

Return Value

void

at line line 87
Authenticatable|null retrieveByCredentials( array $credentials)

Retrieve a user by the given credentials.

Parameters

array $credentials

Return Value

Authenticatable|null

at line line 114
bool validateCredentials( Authenticatable $user, array $credentials)

Validate a user against the given credentials.

Parameters

Authenticatable $user
array $credentials

Return Value

bool

at line line 126
Model createModel()

Create a new instance of the model.

Return Value

Model

at line line 138
Hasher getHasher()

Gets the hasher implementation.

Return Value

Hasher

at line line 149
$this setHasher( Hasher $hasher)

Sets the hasher implementation.

Parameters

Hasher $hasher

Return Value

$this

at line line 161
string getModel()

Gets the name of the Eloquent user model.

Return Value

string

at line line 172
$this setModel( string $model)

Sets the name of the Eloquent user model.

Parameters

string $model

Return Value

$this