Рет қаралды 6,880
►Laravel 10 Tutorial Playlist: • Laravel 10 Tutorial: M...
In Part-24, we will work on the "Remember me" functionality in Laravel 10. We will use Cookies to implement a RememberMe functionality for the admin login form by which we are able to store the user email and password for a longer time in the browser cache that can be accessed anytime.
It will prevent the user to fill username and password again while logging in.
1) Update login.blade.php file :-
First of all, we will add a "Remember Me" checkbox at the admin login form with the name "remember".
2) Update login function:-
Now we will update the login function at AdminController and will set cookies both for email and password when the remember post data is not empty means when the user checks at Remember Me checkbox at the admin login form.
3) Update login.blade.php file :-
Now we will update the login.blade.php file once again to show the username and password that we have stored in cookies when the user checks the "Remember Me" checkbox.
Now you can test; the "Remember Me" functionality will work fine.
►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 T...
►React JS Tutorial for Beginners with Laravel - • React JS Tutorial with...
►Laravel Tutorial for Beginners - • Laravel Tutorial for B...
►GIT Tutorial for Beginners - • Git Tutorial for Begin...
►Laravel API Tutorial - • Laravel API Tutorial |...
►Laravel Interview Questions - • Laravel Interview Ques...
►jQuery Tutorial - • jQuery Tutorial
►Laravel Basic E-commerce Series - • Make Admin Panel / E-c...
►Laravel Dating Series - • Make Dating / Social N...
►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 - / stackdevelopers2
►Join Facebook Group to resolve your queries - / stackdevelopers
►Follow on Instagram - / stackdevelopers2
►Follow on GitHub - github.com/sta...
#laravel10 #laravel10tutorial #laravel