# How to reset the password in LARAVEL 9?

## Send Forgot Password EMAIL to reset password.
We have already covered [Laravel installation](https://dev.to/shanisingh03/how-to-install-laravel-9-25c4) and [Laravel Auth Scaffolding](https://dev.to/shanisingh03/how-to-make-login-registration-in-laravel-9-1p2n).

Next, We will cover forgot password flow using [Laravel/UI](https://github.com/laravel/ui).

## Step 1
Gather SMTP Details, you can use any SMTP but for this tutorial I am going to use [MailTrap](https://mailtrap.io/), this is an email testing tool you can use while developing any SMTP feature.

The Detail we require are
```php
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=#############
MAIL_PASSWORD=############
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="test@test.com"
MAIL_FROM_NAME="${APP_NAME}"
```

We have to update these details in `.env` file.

## Step 2
Now go to password reset route `/password/reset` you will see the reset password page.

![Reset Password](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gua0ktv9du68zh1behem.png)

Now enter the registered email address and click on Send Password Link.


![Email Link Sent](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/auy6l3j5srd6uts6n9lz.png)

You should get an email in MAILTRAP Inbox.

![Reset Email Look Like](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hwd9imgzb4nrw10e5ahp.png)

Once you click on Reset Password Button from Email you will land on the Change password screen.

![Reset Password Page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cmkek9k8bd9meuy213kc.png)

After you enter a new password you will redirect to the homepage.


![Reset Password Success](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxf7ab149vgdxhnfgbuo.png)

The Complete Video Tutorial is below in the video.

%[https://youtu.be/Y54cfciVQaM]

If you face any issues while implementing, please comment on your query.

Thank You for Reading

Reach Out To me.
[Twitter](https://twitter.com/techtoolindia)
[Instagram](https://www.instagram.com/techtoolindia/)
[YouTube](https://www.youtube.com/c/TechToolIndia)
