class
Illuminate
/
Auth
/
EloquentUserProvider
You are viewing an older version of the documentation. For the latest, please visit master documentation.
EloquentUserProvider
Implements
Properties
protected
$model string
The Eloquent user model.
Default: null
Methods
public
__construct ( Hasher $hasher , $model ) : void
Create a new database user provider.
Parameters
- $hasher Hasher
- $model string
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
- $user Authenticatable |Model
- $token string
public
retrieveByCredentials ( array $credentials ) : Authenticatable |null
Retrieve a user by the given credentials.
Parameters
- $credentials array
protected
firstCredentialKey ( array $credentials ) : string|null
Get the first key from the credential array.
Parameters
- $credentials array
public
validateCredentials ( Authenticatable $user , array $credentials ) : bool
Validate a user against the given credentials.
Parameters
- $user Authenticatable
- $credentials array
protected
newModelQuery ( $model ) : Builder
Get a new query builder for the model instance.
Parameters
- $model Model |null
public
setHasher ( Hasher $hasher ) : $this
Sets the hasher implementation.
Parameters
- $hasher Hasher
public
getModel ( ) : string
Gets the name of the Eloquent user model.
public
setModel ( $model ) : $this
Sets the name of the Eloquent user model.
Parameters
- $model string