mailList = ContactFormType::make($data->enumType)->getContactMails(); } /** * Execute the job. * * @return void */ public function handle(): void { foreach ($this->mailList as $recipient) { Mail::to($recipient)->send(new ContactMail($this->data)); } Log::debug( sprintf( 'Sent %s to %s', $this->data->enumType->label(), implode(',', $this->mailList) ) ); } }