Answers for "laravel Auth::logoutOtherDevices"

PHP
0

laravel Auth::logoutOtherDevices

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

Browse Popular Code Answers by Language