I use Laravel 5.2.
I want to know how can I force a user to logout by id?
I\'m building an admin panel with the option to dis-active specific user that are
get current user
$user = Auth::user();
logout user you want to, by id
$userToLogout = User::find(5); Auth::setUser($userToLogout); Auth::logout();
set again current user
Auth::setUser($user);