apply( (string) $this->request->getContent(), (string) $this->request->header('X-IAM-Signature', ''), (string) $this->request->header('X-IAM-Event-ID', '') ); return response('', 204); } catch (IamHubException $error) { return json([ 'code' => 0, 'show' => 0, 'msg' => $error->getMessage(), 'data' => [], ], $error->httpStatus()); } catch (\Throwable $error) { Log::error('IAM Hub revocation failed: ' . get_class($error)); return json([ 'code' => 0, 'show' => 0, 'msg' => 'IAM Hub revocation failed', 'data' => [], ], 500); } } }