crmCustomer = $crmCustomer; $this->settings = $settings; $this->participation = $participation; } /** * Build the message. * * @return $this */ public function build() { $subject = ''; if (!collect($this->to)->count()) { $this->to(config('mail.MAIL_ADMIN')); $subject = '!!! AUCUNE Valeur configurée dans settings email list. !!!'; } $subject .= $this->settings->name . ' : un lot a été gagné'; return $this->subject($subject) ->view('front.basic.notif-win-admin-email', [ 'crmCustomer' => $this->crmCustomer, 'participation' => $this->participation ]); } }