Answers for "laravel 8 get user session"

PHP
0

laravel one session per user

Firstly uncomment out the:

IlluminateSessionMiddlewareAuthenticateSession::class, line from AppHttp Kernel.php class.

Secondly add this line in your login controller function just after login attempt successfully and before redirection: Auth::logoutOtherDevices(request('password'));
Posted by: Guest on July-03-2021

Browse Popular Code Answers by Language