I have a couple of problems with understanding Laravel remember me functionality.
remember_me
column in users
table ?Thank you.
Laravel authentication offers remember me functionality out of the box.
In order to use it you need to do 2 things:
add remember_token column in your users table - this is where the token will be stored pass true as a second parameter of Auth::attempt() to enable remember me behaviour If you do this, Laravel will generate a token that will be saved in users table and in a cookie. On subsequent requests, even if session cookie is not available, user will be authenticated automatically as long as remember-me cookie is there.
You can find more details and example in the docs: Click Here
There is a good documentation on this as well here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With