Laravel 10 Tutorial #127 | Forgot Password in Laravel (II) | Reset Password |Send Confirmation Email

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

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

We are going to reset the user password in this part and send a confirmation email to the user.

1) Create Route :-
Create GET/POST route to reset the user password in the web.php file like the below:

// Reset Password
Route::match(['get','post'],'user/reset-password/{code?}','UserController@resetPassword');

2) Create resetPassword function:-
Create the resetPassword function at UserController that will return to the reset_password.blade.php file.

3) Create reset_password.blade.php :-
Now create the reset_password.blade.php file under /resources/views/front/users/ folder and create a reset password form with a new password field and code as a hidden field.

4) Update custom.js file:-
Add jQuery function for resetting password in custom.js file

5) Update resetPassword function:-
Now update the resetPassword function to reset the current user password with the new one and we will send the new password to user email as well.

6) Create user_new_password.blade.php
Now create the user_new_password.blade.php file under the resources/views/emails folder where we will send the user a new password.

►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
7 ماه پیش در تاریخ 1402/10/16 منتشر شده است.
336 بـار بازدید شده
... بیشتر