Laravel 10 Tutorial #126 | Forgot Password in Laravel (I) | Send Reset Password Link Email

Stack Developers
Stack Developers
302 بار بازدید - 6 ماه پیش - ►Laravel 10 Tutorial Playlist:
►Laravel 10 Tutorial Playlist: Laravel 10 Tutorial: Make Admin Panel...

In Part 126 of the Laravel 10 Tutorial to make the E-commerce Website in Laravel, we will start working on the forgot password functionality. This feature is for those users who forget the password of their registered account.

We are going to create a Forgot Password form in which the user will enter his registered email to get an email to update his password.

1) Update login.blade.php :-
First of all, we will add a "Forgot Password" link under the login form at the login.blade.php file that the user can click to recover his password.

2) Create Route :-
Create Get/POST Route for forgot-password in web.php file like below:-
// Forgot Password
Route::match(['get','post'],'user/forgot-password','UserController@forgotPassword');

3) Create forgotPassword function :-
Now create the forgotPassword function at UserController that will return to the forgot_password.blade.php file.

4) Create forgot_password.blade.php :-
Now create the forgot_password.blade.php file under /resources/views/front/users/ folder and create a forgot password form with an email field that the user will fill to rest his password.

We will get its HTML from the lost-password.html file located in the SiteMakers Eshop template.

5) Update custom.js file:-
Add jQuery function for forgot password in custom.js file

6) Update forgotPassword function

7) Create reset_password.blade.php
Now create the reset_password.blade.php file under the resources/views/emails folder in which we will send the link to the user to reset his password.

To be continued...

►Click here to subscribe for Laravel & other updates - stackdevelopers

Popular Stack Developers Series that can help you:-

►Laravel Multi-Vendor E-commerce Website - Laravel Multi Vendor Tutorial

►React JS Tutorial for Beginners with Laravel - React JS Tutorial with Laravel for Be...

►Laravel Tutorial for Beginners - Laravel Tutorial for Beginners | Adva...

►GIT Tutorial for Beginners - Git Tutorial for Beginners | Create y...

►Laravel API Tutorial - Laravel API Tutorial | Create API fro...

►Laravel Interview Questions - Laravel Interview Questions & Answers...

►jQuery Tutorial - jQuery Tutorial

►Laravel Basic E-commerce Series - Make Admin Panel / E-commerce Website...

►Laravel Dating Series - Make Dating / Social Networking Websi...

►Join this channel to get the complete source code of all series:
@stackdevelopers

Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates - Facebook: stackdevelopers2
►Join Facebook Group to resolve your queries - Facebook: stackdevelopers
►Follow on Instagram - Instagram: stackdevelopers2
►Follow on GitHub - https://github.com/stackdevelopers

#laravel10 #laravel10tutorial #laravel
6 ماه پیش در تاریخ 1402/10/14 منتشر شده است.
302 بـار بازدید شده
... بیشتر