ResetsPasswords
Table of Contents
- broker() : PasswordBroker
- Get the broker to be used during password reset.
- reset() : RedirectResponse|JsonResponse
- Reset the given user's password.
- showResetForm() : Factory|View
- Display the password reset view for the given token.
- credentials() : array<string|int, mixed>
- Get the password reset credentials from the request.
- guard() : StatefulGuard
- Get the guard to be used during password reset.
- resetPassword() : void
- Reset the given user's password.
- rules() : array<string|int, mixed>
- Get the password reset validation rules.
- sendResetFailedResponse() : RedirectResponse|JsonResponse
- Get the response for a failed password reset.
- sendResetResponse() : RedirectResponse|JsonResponse
- Get the response for a successful password reset.
- validationErrorMessages() : array<string|int, mixed>
- Get the password reset validation error messages.
Methods
broker()
Get the broker to be used during password reset.
public
broker() : PasswordBroker
Return values
PasswordBroker —reset()
Reset the given user's password.
public
reset(Request $request) : RedirectResponse|JsonResponse
Parameters
- $request : Request
Return values
RedirectResponse|JsonResponse —showResetForm()
Display the password reset view for the given token.
public
showResetForm(Request $request[, string|null $token = null ]) : Factory|View
If no token is present, display the link request form.
Parameters
- $request : Request
- $token : string|null = null
Return values
Factory|View —credentials()
Get the password reset credentials from the request.
protected
credentials(Request $request) : array<string|int, mixed>
Parameters
- $request : Request
Return values
array<string|int, mixed> —guard()
Get the guard to be used during password reset.
protected
guard() : StatefulGuard
Return values
StatefulGuard —resetPassword()
Reset the given user's password.
protected
resetPassword(CanResetPassword $user, string $password) : void
Parameters
- $user : CanResetPassword
- $password : string
Return values
void —rules()
Get the password reset validation rules.
protected
rules() : array<string|int, mixed>
Return values
array<string|int, mixed> —sendResetFailedResponse()
Get the response for a failed password reset.
protected
sendResetFailedResponse(Request $request, string $response) : RedirectResponse|JsonResponse
Parameters
- $request : Request
- $response : string
Return values
RedirectResponse|JsonResponse —sendResetResponse()
Get the response for a successful password reset.
protected
sendResetResponse(string $response) : RedirectResponse|JsonResponse
Parameters
- $response : string
Return values
RedirectResponse|JsonResponse —validationErrorMessages()
Get the password reset validation error messages.
protected
validationErrorMessages() : array<string|int, mixed>