\App\AuthUserProvider

EloquentUserProvider that asserts that the user's status is active before allowing actions such as login.

Summary

Methods
Properties
Constants
validateCredentials()
retrieveByCredentials()
No public properties found
LOGIN_KEY
EMAIL_KEY
USERNAME_KEY
guessLoginKey()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

LOGIN_KEY

LOGIN_KEY

EMAIL_KEY

EMAIL_KEY

USERNAME_KEY

USERNAME_KEY

Methods

validateCredentials()

validateCredentials(\Illuminate\Contracts\Auth\Authenticatable  $user, array  $credentials) : boolean

Parameters

\Illuminate\Contracts\Auth\Authenticatable $user
array $credentials

Returns

boolean

retrieveByCredentials()

retrieveByCredentials(array  $credentials) : \Illuminate\Contracts\Auth\Authenticatable|null

Parameters

array $credentials

Returns

\Illuminate\Contracts\Auth\Authenticatable|null

guessLoginKey()

guessLoginKey(  $value) : string

Guess whether the provided login is an e-mail or a username.

Parameters

$value

Returns

string