onQueue('high'); } /** * Execute the job. */ public function handle(): void { $validator = Validator::make( ['webhook_url' => $this->webhookUrl], ['webhook_url' => ['required', 'url', new SafeWebhookUrl]] ); if ($validator->fails()) { Log::warning('SendMessageToDiscordJob: blocked unsafe webhook URL', [ 'url' => $this->webhookUrl, 'errors' => $validator->errors()->all(), ]); return; } Http::withOptions(['allow_redirects' => false])->post($this->webhookUrl, $this->message->toPayload()); } }