DatabaseUserProvider
class DatabaseUserProvider implements UserProvider (View source)
Methods
void
__construct(
ConnectionInterface $conn,
Hasher $hasher,
string $table)
Create a new database user provider.
Authenticatable|null
retrieveById(
mixed $identifier)
Retrieve a user by their unique identifier.
Authenticatable|null
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.
Authenticatable|null
retrieveByCredentials(
array $credentials)
Retrieve a user by the given credentials.
bool
validateCredentials(
Authenticatable $user,
array $credentials)
Validate a user against the given credentials.
Details
at line line 42
void
__construct(
ConnectionInterface $conn,
Hasher $hasher,
string $table)
Create a new database user provider.
at line line 55
Authenticatable|null
retrieveById(
mixed $identifier)
Retrieve a user by their unique identifier.
at line line 69
Authenticatable|null
retrieveByToken(
mixed $identifier,
string $token)
Retrieve a user by their unique identifier and "remember me" token.
at line line 86
void
updateRememberToken(
Authenticatable $user,
string $token)
Update the "remember me" token for the given user in storage.
at line line 99
Authenticatable|null
retrieveByCredentials(
array $credentials)
Retrieve a user by the given credentials.
at line line 140
bool
validateCredentials(
Authenticatable $user,
array $credentials)
Validate a user against the given credentials.