Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 17, 2020
1 parent 430e583 commit 41398c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passwords.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Next, we will define a route will handle the form request from the "forgot passw
: back()->withErrors(['email' => __($status)]);
})->middleware(['guest'])->name('password.email');

Before moving on, let's examine this route in more detail. First, the request's `email` attribute is validated. Next, we will use Laravel's built-in "password broker" to send a password reset link to the user. The password broker will take care of retrieving the user by the given field (in this case, the email address) and sending the user a password reset link via Laravel's built-in [notification system](/docs/{{version}}/notifications).
Before moving on, let's examine this route in more detail. First, the request's `email` attribute is validated. Next, we will use Laravel's built-in "password broker" (via the `Password` facade) to send a password reset link to the user. The password broker will take care of retrieving the user by the given field (in this case, the email address) and sending the user a password reset link via Laravel's built-in [notification system](/docs/{{version}}/notifications).

The `sendResetLink` method returns a "status" slug. This status may be translated using Laravel's [localization](/docs/{{version}}/localization) helpers in order to display a user-friendly message to the user regarding the status of their request. The translation of the password reset status is determined by your application's `resources/lang/{lang}/password.php` language file.

Expand Down

0 comments on commit 41398c6

Please sign in to comment.