avrei trovato anche stà cosa
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 storedpass 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.
...ma anche qui, nel caso, il cookie lo produce automaticamente laravel, oppure ci devo pensare io?