Laravel 9 Forgot Password Email | Laravel 9 Forgot Password Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] welcome to tech tool india in this video i'm going to in this video i'm going to explain you how you can reset your password by sending an as we already installed laravel 9 and we have used laravel ui package to make a authentication scaffolding so i'm go already made this login registration so if i click on this login i'm able to login in the system so i just logged out now i'm going to show you how you can make your forget password by using uh laravel ui forget password flow before starting if you are new to the channel please do subscribe our channel so without wasting any time let's get started how you can send a forget password email so for that we need to have a smtp detail i am going to use a mail trap test email service which we are we can use as a testing tool for our email so it it provide us all these email details mail mailer host port username password all these we need to copy it from here and let's go into our code if i open this dot env file you can see i already use this email details and paste it here so any email i'll send it will go to that inbox so the first thing you need to do is create a mail trap account in that you need to create go to your inbox and in box you need to select the integration for laravel 7 plus and there you will find all the updated credential you can use for sending an email so the first thing would be update the env file as soon as you update the env file the laravel ui authentication scaffolding already give you the forget password flow if you go to this login page you have this link forget password if you click on this you will see there is a password reset if you want to change the view of this particular page you can go to the code there is a view in inside a resources folder inside the auth you will see there is a password so inside that you'll see their email password so this view is displaying there you can update this view if you go to this let me reset my password let me update this and let's go into our page refresh this you see we have updated the car title and it's reflecting here so you can update your details of the view from the blade file next what we need to do we need to enter our registered email id so i'm going to the database and copying this registered email address and pasting it here as soon as i click on this send password recent link it will send an email to my email box you have seen that we have emailed your password recently so let's go our mail trap inbox refresh this you see we have received email it has the predefined template of laravel here you can update this email as well but i'm just covering it with the basic flow which which laravel authentication scaffolding already gives us so you see there is a message there is a hello and then this is the reset password link and the link is given below if you are not able to see this button so let's go ahead and click on this button as soon as you click on this button you'll see we have landed on this with this authentication token if you want to see this token you can go to this password reset table as soon as you refresh it it sees you the email address in the token and when it is created so by this it actually verifies like if you are coming from the correct link or not and then you need to enter a new password here and as soon as you click on this reset password button it will reset your password and log you in inside the dashboard so now your password has been reset so it's really simple you need you just need to follow a few things the very first thing is to get the smtp detail updated on dot env file and then you can use this auth reset password flow it will just validate your email address and once you you know uh enter your email address it will send you the email link and from there you can reset the password so it's very simple if you found this video informative please do like this video share with your friends do subscribe our channel to get more videos on the level till this is on the level till the next video keep watch thank you [Music] you
Info
Channel: TechTool India
Views: 9,343
Rating: undefined out of 5
Keywords: laravel forget password, laravel forgot password, forgot password, laravel forgot password email, laravel reset password, laravel, laravel custom password reset email, laravel 7 forgot password email, reset password laravel, forgot password laravel, laravel 5.3 forgot password, laravel forgot password tutorial, laravel 8, laravel email, forgot password in laravel, php forgot password, laravel password reset, laravel tutorial, laravel mail, laravel 8 forgot password email
Id: Y54cfciVQaM
Channel Id: undefined
Length: 5min 41sec (341 seconds)
Published: Wed Jun 01 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.