$withdrawal->id, 'tenant_id' => $withdrawal->tenant_id, ]); $this->safeExecute(fn () => $this->service->handleWithdrawalCreated($withdrawal)); } public function deleted(Withdrawal $withdrawal): void { $this->safeExecute(fn () => $this->service->handleWithdrawalDeleted($withdrawal)); } protected function safeExecute(callable $callback): void { try { $callback(); } catch (\Throwable $e) { Log::warning('TodayIssue WithdrawalObserver failed', [ 'error' => $e->getMessage(), ]); } } }