ResetsPasswords
trait ResetsPasswords (View source)
Traits
RedirectsUsers |
Methods
string | redirectPath() Get the post register / login redirect path. | from RedirectsUsers |
string | guestMiddleware() Get the name of the guest middleware. | |
Response | getEmail() Display the form to request a password reset link. | |
Response | showLinkRequestForm() Display the form to request a password reset link. | |
Response | postEmail(Request $request) Send a reset link to the given user. | |
Response | sendResetLinkEmail(Request $request) Send a reset link to the given user. | |
void | validateSendResetLinkEmail(Request $request) Validate the request of sending reset link. | |
array | getSendResetLinkEmailCredentials(Request $request) Get the needed credentials for sending the reset link. | |
Closure | resetEmailBuilder() Get the Closure which is used to build the password reset email message. | |
string | getEmailSubject() Get the e-mail subject line to be used for the reset link email. | |
Response | getSendResetLinkEmailSuccessResponse(string $response) Get the response for after the reset link has been successfully sent. | |
Response | getSendResetLinkEmailFailureResponse(string $response) Get the response for after the reset link could not be sent. | |
Response | getReset(Request $request, string|null $token = null) Display the password reset view for the given token. | |
Response | showResetForm(Request $request, string|null $token = null) Display the password reset view for the given token. | |
Response | postReset(Request $request) Reset the given user's password. | |
Response | reset(Request $request) Reset the given user's password. | |
array | getResetValidationRules() Get the password reset validation rules. | |
array | getResetValidationMessages() Get the password reset validation messages. | |
array | getResetValidationCustomAttributes() Get the password reset validation custom attributes. | |
array | getResetCredentials(Request $request) Get the password reset credentials from the request. | |
void | resetPassword(CanResetPassword $user, string $password) Reset the given user's password. | |
Response | getResetSuccessResponse(string $response) Get the response for after a successful password reset. | |
Response | getResetFailureResponse(Request $request, string $response) Get the response for after a failing password reset. | |
string|null | getBroker() Get the broker to be used during password reset. | |
string|null | getGuard() Get the guard to be used during password reset. |
Details
string redirectPath()
Get the post register / login redirect path.
protected string guestMiddleware()
Get the name of the guest middleware.
Response getEmail()
Display the form to request a password reset link.
Response showLinkRequestForm()
Display the form to request a password reset link.
protected void validateSendResetLinkEmail(Request $request)
Validate the request of sending reset link.
protected array getSendResetLinkEmailCredentials(Request $request)
Get the needed credentials for sending the reset link.
protected Closure resetEmailBuilder()
Get the Closure which is used to build the password reset email message.
protected string getEmailSubject()
Get the e-mail subject line to be used for the reset link email.
protected Response getSendResetLinkEmailSuccessResponse(string $response)
Get the response for after the reset link has been successfully sent.
protected Response getSendResetLinkEmailFailureResponse(string $response)
Get the response for after the reset link could not be sent.
Response getReset(Request $request, string|null $token = null)
Display the password reset view for the given token.
If no token is present, display the link request form.
Response showResetForm(Request $request, string|null $token = null)
Display the password reset view for the given token.
If no token is present, display the link request form.
protected array getResetValidationRules()
Get the password reset validation rules.
protected array getResetValidationMessages()
Get the password reset validation messages.
protected array getResetValidationCustomAttributes()
Get the password reset validation custom attributes.
protected array getResetCredentials(Request $request)
Get the password reset credentials from the request.
protected void resetPassword(CanResetPassword $user, string $password)
Reset the given user's password.
protected Response getResetSuccessResponse(string $response)
Get the response for after a successful password reset.
protected Response getResetFailureResponse(Request $request, string $response)
Get the response for after a failing password reset.
string|null getBroker()
Get the broker to be used during password reset.
protected string|null getGuard()
Get the guard to be used during password reset.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Foundation/Auth/ResetsPasswords.html