class Illuminate / Auth / DatabaseUserProvider
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

DatabaseUserProvider

Implements

Properties

protected

$connection ConnectionInterface

The active database connection.

Default: null
protected

$hasher Hasher

The hasher implementation.

Default: null
protected

$table string

The table containing the users.

Default: null

Methods

public

__construct ( ConnectionInterface $connection , Hasher $hasher , $table ) : void

Create a new database user provider.

Parameters

public

retrieveById ( $identifier ) : Authenticatable |null

Retrieve a user by their unique identifier.

Parameters

  • $identifier mixed
public

retrieveByToken ( $identifier , $token ) : Authenticatable |null

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

Parameters

  • $identifier mixed
  • $token string
public

updateRememberToken ( Authenticatable $user , $token ) : void

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

Parameters

public

retrieveByCredentials ( array $credentials ) : Authenticatable |null

Retrieve a user by the given credentials.

Parameters

  • $credentials array
protected

getGenericUser ( $user ) : GenericUser |null

Get the generic user.

Parameters

  • $user mixed
public

validateCredentials ( Authenticatable $user , array $credentials ) : bool

Validate a user against the given credentials.

Parameters