Это видео недоступно.
Сожалеем об этом.

#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

Комментарии • 21

  • @s.narthanan7177
    @s.narthanan7177 Год назад +1

    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

  • @Ramziddin_Rustamovv
    @Ramziddin_Rustamovv 3 месяца назад +1

    thanks
    :)

  • @jayantsharma9523
    @jayantsharma9523 Год назад

    Thanks For The great and easy to learnable tutorial

  • @muadzrosli
    @muadzrosli 8 месяцев назад +1

    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?

    • @StackDevelopers
      @StackDevelopers  8 месяцев назад

      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.

    • @toeoo6973
      @toeoo6973 8 месяцев назад

      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.

  • @kqnesky_7516
    @kqnesky_7516 5 месяцев назад +1

    Thank you

  • @pandug.somantri3228
    @pandug.somantri3228 11 месяцев назад +1

    work, thanks

  • @NoLongerStranger
    @NoLongerStranger 6 месяцев назад

    its not working, the email and password is not staying on the input field sir

    • @StackDevelopers
      @StackDevelopers  6 месяцев назад

      Have you tried to debug your code to identify the issue?

  • @sanduniruwanthika1410
    @sanduniruwanthika1410 9 месяцев назад

    How to use remember token in database table

    • @StackDevelopers
      @StackDevelopers  9 месяцев назад

      Why you want to store it in database table?

  • @funistop007
    @funistop007 10 месяцев назад

    it returns encrypted data

    • @StackDevelopers
      @StackDevelopers  10 месяцев назад

      Show me your code so that I can help resolving your issue

  • @Stoic_Way
    @Stoic_Way Год назад

    its not working