Это видео недоступно.
Сожалеем об этом.
#24 Laravel 10 Tutorial | Remember me Laravel functionality| Remember me functionality in Login Page
HTML-код
- Опубликовано: 26 апр 2023
- ►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
Stack Developers, your tutorials on Laravel 10 and the 'Remember Me' functionality have been a game-changer for me. I've learned so much and implemented these features successfully in my projects. Thank you for your clear explanations and step-by-step guidance. You've made complex concepts easy to understand. Your channel is my go-to resource for all things development. Keep up the great work! 11:27 ❤
Thank you so much for the appreciation 😊🙏
thanks
:)
Welcome :)
Thanks For The great and easy to learnable tutorial
Thank you so much 🙏
The remember me functionality is to allow user directly go to authorized page without have to login using login form everytime user comes to the website/portal. Or did I misunderstand the original concept of this functionality?
Yes, Remember Me functionality remembers the form fields and here in the login form it remembers the username and password fields so you are not required to fill them again while logging in.
Or maybe you could check if the cookies are set in admin middleware and if they are set, you could Auth attempt there and provide the cookie email and password. That way, user can directly go to authorized page without having to login every time user comes to website as long as cookie isn't expired.
Thank you
Most Welcome
work, thanks
Welcome 👍
its not working, the email and password is not staying on the input field sir
Have you tried to debug your code to identify the issue?
How to use remember token in database table
Why you want to store it in database table?
it returns encrypted data
Show me your code so that I can help resolving your issue
its not working
What issue you are facing?