Open michaelnguyen2021 opened 5 years ago
if you have
user
andadmin
both logged in. When 1 of them sign out, all are signed out. It should only sign out the guard that perform the sign out
I just tried it. It doesn't sign out all logged users. Laravel logs out the specific guard.
public function logout(Request $request)
{
$this->guard()->logout();
$request->session()->invalidate();
return redirect('/');
}
if you have
user
andadmin
both logged in. When 1 of them sign out, all are signed out. It should only sign out the guard that perform the sign out