// Revoke the token that was used to authenticate the current request... $request->user()->currentAccessToken()->delete(); // Revoke a specific token... $user->tokens()->where('id', $tokenId)->delete();// delete all tokens, essentially logging the user out $user->tokens()->delete(); // delete the current token that was used for the request $request->user()->currentAccessToken()->delete();// for those who use laravel sanctum auth('sanctum')->user()->id if( auth('sanctum')->check() ) {/* user is authenticated */}sanctum logout