PasswordBroker
class PasswordBroker implements PasswordBroker (View source)
Properties
protected TokenRepositoryInterface | $tokens | The password token repository. |
|
protected UserProvider | $users | The user provider implementation. |
|
protected Dispatcher | $events | The event dispatcher instance. |
Methods
__construct(TokenRepositoryInterface $tokens, UserProvider $users, Dispatcher|null $dispatcher = null)
Create a new password broker instance.
string
sendResetLink(array $credentials, Closure|null $callback = null)
Send a password reset link to a user.
CanResetPassword|string
validateReset(array $credentials)
Validate a password reset for the given credentials.
CanResetPassword|null
getUser(array $credentials)
Get the user for the given credentials.
string
void
bool
getRepository()
Get the password reset token repository implementation.
Details
__construct(TokenRepositoryInterface $tokens, UserProvider $users, Dispatcher|null $dispatcher = null)
Create a new password broker instance.
string
sendResetLink(array $credentials, Closure|null $callback = null)
Send a password reset link to a user.
protected CanResetPassword|string
validateReset(array $credentials)
Validate a password reset for the given credentials.