Fix logout test

This commit is contained in:
Bubka 2020-03-04 17:19:42 +01:00
parent 25ee8f58fe
commit b07d599fb8

View File

@ -127,7 +127,8 @@ protected function validateLogin(Request $request)
*/
public function logout(Request $request)
{
$this->guard()->logout();
$accessToken = Auth::user()->token();
$accessToken->revoke();
return response()->json(['message' => 'signed out'], Response::HTTP_OK);
}