Answers for "laravel one session per user"

PHP
0

laravel one session per user

Firstly uncomment out the:

\Illuminate\Session\Middleware\AuthenticateSession::class, line from App\Http 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

Code answers related to "laravel one session per user"

Browse Popular Code Answers by Language