onQueue(config('filament-short-url.queue_name', 'default')); } /** * Execute the job. */ public function handle(): void { try { $response = Http::timeout(10) ->withHeaders([ 'Content-Type' => 'application/json', 'User-Agent' => 'wYachts-ShortUrl-Webhook/1.5', ]) ->post($this->url, $this->payload); if ($response->failed()) { Log::warning("[FilamentShortUrl] Webhook delivery returned client/server error", [ 'url' => $this->url, 'event' => $this->event, 'status' => $response->status(), ]); // Throw exception to trigger queue retry throw new \RuntimeException("Webhook failed with status " . $response->status()); } } catch (\Throwable $e) { Log::warning("[FilamentShortUrl] Webhook delivery failed", [ 'url' => $this->url, 'event' => $this->event, 'error' => $e->getMessage(), ]); throw $e; } } }