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.

Return Value

string

protected string guestMiddleware()

Get the name of the guest middleware.

Return Value

string

Response getEmail()

Display the form to request a password reset link.

Return Value

Response

Response showLinkRequestForm()

Display the form to request a password reset link.

Return Value

Response

Response postEmail(Request $request)

Send a reset link to the given user.

Parameters

Request $request

Return Value

Response

Response sendResetLinkEmail(Request $request)

Send a reset link to the given user.

Parameters

Request $request

Return Value

Response

protected void validateSendResetLinkEmail(Request $request)

Validate the request of sending reset link.

Parameters

Request $request

Return Value

void

protected array getSendResetLinkEmailCredentials(Request $request)

Get the needed credentials for sending the reset link.

Parameters

Request $request

Return Value

array

protected Closure resetEmailBuilder()

Get the Closure which is used to build the password reset email message.

Return Value

Closure

protected string getEmailSubject()

Get the e-mail subject line to be used for the reset link email.

Return Value

string

protected Response getSendResetLinkEmailSuccessResponse(string $response)

Get the response for after the reset link has been successfully sent.

Parameters

string $response

Return Value

Response

protected Response getSendResetLinkEmailFailureResponse(string $response)

Get the response for after the reset link could not be sent.

Parameters

string $response

Return Value

Response

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.

Parameters

Request $request
string|null $token

Return Value

Response

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.

Parameters

Request $request
string|null $token

Return Value

Response

Response postReset(Request $request)

Reset the given user's password.

Parameters

Request $request

Return Value

Response

Response reset(Request $request)

Reset the given user's password.

Parameters

Request $request

Return Value

Response

protected array getResetValidationRules()

Get the password reset validation rules.

Return Value

array

protected array getResetValidationMessages()

Get the password reset validation messages.

Return Value

array

protected array getResetValidationCustomAttributes()

Get the password reset validation custom attributes.

Return Value

array

protected array getResetCredentials(Request $request)

Get the password reset credentials from the request.

Parameters

Request $request

Return Value

array

protected void resetPassword(CanResetPassword $user, string $password)

Reset the given user's password.

Parameters

CanResetPassword $user
string $password

Return Value

void

protected Response getResetSuccessResponse(string $response)

Get the response for after a successful password reset.

Parameters

string $response

Return Value

Response

protected Response getResetFailureResponse(Request $request, string $response)

Get the response for after a failing password reset.

Parameters

Request $request
string $response

Return Value

Response

string|null getBroker()

Get the broker to be used during password reset.

Return Value

string|null

protected string|null getGuard()

Get the guard to be used during password reset.

Return Value

string|null

© 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