I\'m trying to implement a user policy whereby only one user can login at a time. I\'m trying to build this on top of Laravel\'s Auth driver.
I\'ve thought of using
With Laravel 5.6 and superior:
in LoginController add method
protected function authenticated() { \Auth::logoutOtherDevices(request('password')); }
in Kernel
remove comment from line
\Illuminate\Session\Middleware\AuthenticateSession::class,
That's it, the feature is now included in Laravel!