onQueue($queue); $params['message_key'] ??= (string) \Illuminate\Support\Str::uuid(); $this->params = $params; } /** * Execute the job. * * @return void */ public function handle() { $this->params['message_key'] ??= $this->job?->uuid() ?? (string) \Illuminate\Support\Str::uuid(); $mailLog = MailService::sendEmail($this->params); if ($mailLog['retryable'] ?? false) { $this->release($this->backoff[min($this->attempts() - 1, count($this->backoff) - 1)]); } } }