ModelUserProvider<T extends Authenticatable> class
final
UserProvider backed by an ORM model definition.
T must be the model class and implement Authenticatable (use the
AuthenticatableModel mixin).
- Implemented types
-
- UserProvider<
T>
- UserProvider<
Constructors
-
ModelUserProvider(ModelDefinition<
Model> definition, {HashManager? hasher, String? morphClass, String passwordKey = 'password'})
Properties
-
definition
→ ModelDefinition<
Model> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasher → HashManager
-
no setter
- morphClass → String
-
Polymorphic class name stored in
personal_access_tokens.tokenable_type(App\Models\Userwhen coexisting with a Laravel database).no setteroverride - passwordKey → String
-
Credential key holding the plain password.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rehashPasswordIfRequired(
T user, Map< String, Object?> credentials, {bool force = false}) → Future<void> -
Rehashes the password when the configured driver/cost changed
(Laravel 11
rehashPasswordIfRequired).override -
retrieveByCredentials(
Map< String, Object?> credentials) → Future<T?> -
Looks a user up by every credential except password-like keys.
override
-
retrieveById(
Object id) → Future< T?> -
override
-
retrieveByToken(
Object id, String token) → Future< T?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRememberToken(
T user, String token) → Future< void> -
override
-
validateCredentials(
T user, Map< String, Object?> credentials) → Future<bool> -
Verifies the password credential against the stored hash.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited