laravel remember me not working

后端 未结 1 555
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 19:14

I have created 2 different login forms for admin and users in admin login form i have used attempt function i want to use remember me functionality but when i log in to the syst

相关标签:
1条回答
  • 2021-02-10 20:01

    Try passing boolean value as second parameter to method attempt , or

    if (Auth::viaRemember()) {
       //
    }
    

    use viaRemember in new laravel versions

    also , check your config/session.php setting

    'lifetime' => 10080,
    'expire_on_close' => true,
    

    just set your expire_on_close to true and Auth with Auth::viaRemember()

    hope this is helpful

    0 讨论(0)
提交回复
热议问题