Documentation

DatabaseUserProvider
in package
implements UserProvider

Interfaces, Classes and Traits

UserProvider

Table of Contents

$conn  : ConnectionInterface
The active database connection.
$hasher  : Hasher
The hasher implementation.
$table  : string
The table containing the users.
__construct()  : void
Create a new database user provider.
retrieveByCredentials()  : Authenticatable|null
Retrieve a user by the given credentials.
retrieveById()  : Authenticatable|null
Retrieve a user by their unique identifier.
retrieveByToken()  : Authenticatable|null
Retrieve a user by their unique identifier and "remember me" token.
updateRememberToken()  : void
Update the "remember me" token for the given user in storage.
validateCredentials()  : bool
Validate a user against the given credentials.
getGenericUser()  : GenericUser|null
Get the generic user.

Properties

Methods

retrieveByCredentials()

Retrieve a user by the given credentials.

public retrieveByCredentials(array<string|int, mixed> $credentials) : Authenticatable|null
Parameters
$credentials : array<string|int, mixed>
Return values
Authenticatable|null

retrieveByToken()

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

public retrieveByToken(mixed $identifier, string $token) : Authenticatable|null
Parameters
$identifier : mixed
$token : string
Return values
Authenticatable|null

validateCredentials()

Validate a user against the given credentials.

public validateCredentials(Authenticatable $user, array<string|int, mixed> $credentials) : bool
Parameters
$user : Authenticatable
$credentials : array<string|int, mixed>
Return values
bool

Search results