Laravel Forgot and Reset Password Using Email - Laravel Tutorial Step by Step (2023)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone welcome to a new laravel tutorial uh this is yamin in this tutorial i am going to show you how you can send a forget password link to gmail in laravel so if you click the reset password link over here it will take us to another page for we have to give our email and then we have to click the reset password okay if you click it uh you will see i get a email which looks like this and [Music] if you click the reset password over here then it will open a new tab and over here you will get the option where you can actually give the give your new password okay so in this tutorial i will show you how you can do it in laravel so i already create a project and i already have the authentication for this project so right now what you need to do is that you need to open your project in editor and then you have to go to dot enb then over here you need to just edit this part mail part uh the first one you need to edit that you need to write a mailhost equal smtp.gmail.com and then the port will be 465 for gmail and you have to give a username which will be the email that you want to use uh for that specific project so i'm going to use this email which is yamiche 7 at night of gmail.com and then the encryption type will be a ssl and the mail form address will be the same one which will be just yeah i mean shaking 7 gmail.com and you also have to give your email password over here your email original password so i'll i'll just skip this part because uh this is my first one email so since we are using this email uh we need to make some changes in our image so i will go to my mail and then i will go to my manage my google account and then over here i'll go to security and after clicking security i'll go down and i have to you can see that a option which is called less secure app access you have to make it on normally it is turned off so you need to have it on otherwise uh you won't be able to send mails okay this part is done now we need to go to config oh sorry we also need to uh since we eat it in the env so we need to restart it so for this you need to write psg addition config crash now we'll write ps3 artisan serve okay so now we will go to config and inside config uh we will see mail.php which is over here click it now you inside this file you need to write a few line of code i already download and got this code from internet so i'll just copy it and paste it over here okay now i just need to make another small changes i have to give my email over here i'll just write uh my email which is yeah i mean shuttle 7 at gmail.com okay uh this will be the your main subject so let's just name it laravel for now okay let's save it okay now let's go to our browser and refresh it now the first thing we will do that we will go to register and create a account and so let's name it shackle and then the email will be uh yeah here you mean one at the rate of gmail.com let's say pass around two three four five six seven eight and again on two three four five six seven eight then click register okay it will take us to the dashboard now let's log out and now let's go to login and let's click over here forget password okay now let's give our email and now if we give a different email it will not work uh it will give us a message that we cannot find the email something like this okay we need to give a proper email which okay yeah here yeah i mean on gmail okay same password reset link now uh sending an email it takes a little bit of time okay our email is sent now let's go to our gmail and let's refresh it now my net connection is a little bit slow so it will take a while probably okay it's done now let's click it and okay just be a little bit patient with me okay it's done now i will click the reset password over here sending forward password is actually very easy you just if you just follow my what i show you step by step you can do it very easily now i'll change my password okay i'll give it one okay now let's click reset password okay now it will take us to the login page now let's try to log in with our new password okay let's keep the new password let's click login okay it works perfectly so that's how you can do it i hope this video helped you a lot uh if you get uh if you got some help from this video please make sure to like this video and give a comment if you want and if you want me to to make any specific type of video please uh let me know in the comment section and please don't forget to subscribe i really appreciate if you subscribe now thanks again for watching this video
Info
Channel: Web Tech Knowledge
Views: 25,060
Rating: undefined out of 5
Keywords: laravel reset password manually, send reset password link email laravel, laravel 9 reset password, laravel reset password without email, laravel change password in database, laravel reset password, laravel custom password reset email, laravel forget password, reset password laravel, laravel 9 forgot password email, laravel 9 forgot password, laravel forgot password working realtime, laravel password reset email, laravel send email, laravel send mail, laravel mailgun
Id: vCuuSVpuk3M
Channel Id: undefined
Length: 8min 26sec (506 seconds)
Published: Mon Jan 04 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.