EloquentUserProvider
class EloquentUserProvider implements UserProvider (View source)
Methods
Retrieve a user by their unique identifier.
Retrieve a user by their unique identifier and "remember me" token.
Update the "remember me" token for the given user in storage.
Retrieve a user by the given credentials.
Validate a user against the given credentials.
Create a new instance of the model.
Gets the name of the Eloquent user 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.
at line line 45
Authenticatable|null
retrieveById(
mixed $identifier)
Retrieve a user by their unique identifier.
at line line 57
Authenticatable|null
retrieveByToken(
mixed $identifier,
string $token)
Retrieve a user by their unique identifier and "remember me" token.
at line line 74
void
updateRememberToken(
Authenticatable $user,
string $token)
Update the "remember me" token for the given user in storage.
at line line 87
Authenticatable|null
retrieveByCredentials(
array $credentials)
Retrieve a user by the given credentials.
at line line 114
bool
validateCredentials(
Authenticatable $user,
array $credentials)
Validate a user against the given credentials.