If you are using the built-in LoginController that is shipped with Laravel, the proper logic to "remember" users is already implemented by the traits used by the controller.
Remember me passes a cookie to the user so that if they return to the site they are automatically validated
If the user Logs out then they will have to login again as the remember token at the server end is discarded (for safety)
The way to test is to login, then close the browser. Reopen the browser and visit some of the restricted content. You will be automatically logged in.
So to re-iterate. If you logout then you must login. The remember function DOES NOT populate the password field. This is something you browser does if you have it enabled.
@snapey does it depend on the session expiry that we set on laravel_session cookie. because in my application, i have set session_expiry time to 1 minute (just for testing). and when this duration ends then i am automatically logged out even though i have set my remember_me cookie expiry time to 1 year. also on trying to access restricted page (home page) it sends me to login page.
You can try it out at the link provided on the repository. If you create an account then logout, then login selecting 'remember me' then go to the form page, wait for the session timeout (3 minutes). You will then see a page with a clock. Click the link on the page and you will be directly back to the form without logging in.
@snapey Good morning sir. actually i am doing it in laravel 8. I came across this issue there. I have opened another thread for this. because i thought that me commenting might give an impression that i am using laravel 5.4.