📜  laravel Auth::logoutOtherDevices - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:22.593000             🧑  作者: Mango

代码示例1
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'));