Answer the question
In order to leave comments, you need to log in
How to permanently login in laravel?
I authorize in laravel in this way:
the documentation says that the second parameter is responsible for "remember me", the remember_token is written to the database, everything seems to work correctly, but the authorization is reset after a few hours, how to make the authorization "forever"? Auth::login($user, true);
Answer the question
In order to leave comments, you need to log in
Auth::attempt($credentials,true);
It seems so, but we read the dock, in fact we set the second argument and voila. It's unlikely to always work, of course.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question