PassportUserProvider
class PassportUserProvider implements UserProvider
Methods
Retrieve a user by their unique identifier.
Retrieve a user by their unique identifier and "remember me" token.
Update the "remember me" token for the given user in storage.
Retrieve a user by the given credentials.
Validate a user against the given credentials.
Rehash the user's password if required and supported.
Get the name of the user provider.
Details
at line 17
__construct(UserProvider $provider, string $providerName)
Create a new passport user provider.
at line 29
Authenticatable|null
retrieveById(mixed $identifier)
Retrieve a user by their unique identifier.
at line 43
Authenticatable|null
retrieveByToken(mixed $identifier, string $token)
Retrieve a user by their unique identifier and "remember me" token.
at line 56
void
updateRememberToken(Authenticatable $user, string $token)
Update the "remember me" token for the given user in storage.
at line 66
Authenticatable|null
retrieveByCredentials(array $credentials)
Retrieve a user by the given credentials.
at line 79
bool
validateCredentials(Authenticatable $user, array $credentials)
Validate a user against the given credentials.
at line 89
void
rehashPasswordIfRequired(Authenticatable $user, array $credentials, bool $force = false)
Rehash the user's password if required and supported.
at line 97
string
getProviderName()
Get the name of the user provider.