PHP Class Corcel\Providers\AuthUserProvider

Inheritance: implements Illuminate\Contracts\Auth\UserProvider
Afficher le fichier Open project: jgrossi/corcel Class Usage Examples

Protected Properties

Свойство Type Description
$config

Méthodes publiques

Méthode Description
__construct ( $config )
retrieveByCredentials ( array $credentials ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by the given credentials.
retrieveById ( mixed $identifier ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by their unique identifier.
retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by their unique identifier and "remember me" token.
updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : void Update the "remember me" token for the given user in storage.
validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean Validate a user against the given credentials.

Méthodes protégées

Méthode Description
createModel ( ) : Model Create a new instance of the model.

Method Details

__construct() public méthode

public __construct ( $config )

createModel() protected méthode

Create a new instance of the model.
protected createModel ( ) : Model
Résultat Illuminate\Database\Eloquent\Model

retrieveByCredentials() public méthode

Retrieve a user by the given credentials.
public retrieveByCredentials ( array $credentials ) : Illuminate\Contracts\Auth\Authenticatable | null
$credentials array
Résultat Illuminate\Contracts\Auth\Authenticatable | null

retrieveById() public méthode

Retrieve a user by their unique identifier.
public retrieveById ( mixed $identifier ) : Illuminate\Contracts\Auth\Authenticatable | null
$identifier mixed
Résultat Illuminate\Contracts\Auth\Authenticatable | null

retrieveByToken() public méthode

Retrieve a user by their unique identifier and "remember me" token.
public retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null
$identifier mixed
$token string
Résultat Illuminate\Contracts\Auth\Authenticatable | null

updateRememberToken() public méthode

Update the "remember me" token for the given user in storage.
public updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : void
$user Illuminate\Contracts\Auth\Authenticatable
$token string
Résultat void

validateCredentials() public méthode

Validate a user against the given credentials.
public validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$credentials array
Résultat boolean

Property Details

$config protected_oe property

protected $config