Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel Auth::logoutOtherDevices

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'));
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
8+9 =