Skip to content

Commit 69aa5a4

Browse files
committed
updating the docs
1 parent 42a5558 commit 69aa5a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

passwords.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ To properly implement support for allowing users to reset their passwords, we wi
3737
<a name="requesting-the-password-reset-link"></a>
3838
### Requesting The Password Reset Link
3939

40+
#### The Password Reset Link Request Form
41+
4042
First, we will define the routes that are needed to request password reset links. To get started, we will define a route that returns a view with the password reset link request form:
4143

4244
Route::get('/forgot-password', function () {
@@ -45,6 +47,8 @@ First, we will define the routes that are needed to request password reset links
4547

4648
The view that is returned by this route should have an `email` field within its form, which will allow the user to request a password reset link for a given email address.
4749

50+
#### Handling The Form Submission
51+
4852
Next, we will define a route will handle the form request from the "forgot password" view. This route will be responsible for validating the email address and sending the password reset request to the corresponding user:
4953

5054
use Illuminate\Http\Request;
@@ -66,7 +70,7 @@ Before moving on, let's examine this route in more detail. First, the request's
6670

6771
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.
6872

69-
> {tip} When manually implementing password resets, you are required to define the contents of the the views yourself. If you would like scaffolding that includes all necessary authentication and verification views, check out [Laravel Jetstream](https://jetstream.laravel.com).
73+
> {tip} When manually implementing password resets, you are required to define the contents of the the views and routes yourself. If you would like scaffolding that includes all necessary authentication and verification logic, check out [Laravel Jetstream](https://jetstream.laravel.com).
7074
7175
<a name="resetting-the-password"></a>
7276
### Resetting The Password

0 commit comments

Comments
 (0)