public function deauthenticate(ResponseFactory $response, Guard $guard, JWTAuth $auth)
    {
        $guard->logout();
        $auth->invalidate();

        return $response->json([]);
    }
public function deauthenticate(ResponseFactory $response, Guard $guard, JWTAuth $auth)
    {
        $guard->logout();
        $auth->invalidate();

        return $response->json([]);
    }
public function deauthenticate ( ResponseFactory $ response , Guard $ guard , JWTAuth $ auth ) { $ guard -> logout ( ) ; $ auth -> invalidate ( ) ; return $ response -> json ( [ ] ) ; }
Deauthenticate the user.

Logout the user and remove any cache associated to the user.

Authorization: Bearer xxx

@Delete(uri="/")
@Request(contentType="application/json")
@Transaction({
@Response(200),
})
Deauthenticate the user .