class PasswordBroker implements PasswordBroker (View source)
protected TokenRepositoryInterface | $tokens | The password token repository. | |
protected UserProvider | $users | The user provider implementation. | |
protected Closure | $passwordValidator | The custom password validator callback. |
void | __construct(TokenRepositoryInterface $tokens, UserProvider $users) Create a new password broker instance. | |
string | sendResetLink(array $credentials) Send a password reset link to a user. | |
mixed | reset(array $credentials, Closure $callback) Reset the password for the given token. | |
CanResetPassword|string | validateReset(array $credentials) Validate a password reset for the given credentials. | |
void | validator(Closure $callback) Set a custom password validator. | |
bool | validateNewPassword(array $credentials) Determine if the passwords match for the request. | |
bool | validatePasswordWithDefaults(array $credentials) Determine if the passwords are valid for the request. | |
CanResetPassword|null | getUser(array $credentials) Get the user for the given credentials. | |
string | createToken(CanResetPassword $user) Create a new password reset token for the given user. | |
void | deleteToken(CanResetPassword $user) Delete password reset tokens of the given user. | |
bool | tokenExists(CanResetPassword $user, string $token) Validate the given password reset token. | |
TokenRepositoryInterface | getRepository() Get the password reset token repository implementation. |
Create a new password broker instance.
Send a password reset link to a user.
Reset the password for the given token.
Validate a password reset for the given credentials.
Set a custom password validator.
Determine if the passwords match for the request.
Determine if the passwords are valid for the request.
Get the user for the given credentials.
Create a new password reset token for the given user.
Delete password reset tokens of the given user.
Validate the given password reset token.
Get the password reset token repository implementation.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Auth/Passwords/PasswordBroker.html