claimModel = $claimModel; $this->answer = $answer; } /** * Build the message. * * @return $this */ public function build() { return $this ->from("no-reply@{$this->claimModel->brand->domain}") ->subject(sprintf( 'Réponse réclamation %s - %s', $this->claimModel->reference, $this->claimModel->brand->name )) ->markdown('mail.send-claim-answer') ->text('mail.send-claim-answer-plain') ->with([ 'customHeader' => view('vendor.mail.html.header-claim-answer', [ 'brandModel' => $this->claimModel->brand, ])->render(), 'customFooter' => view('vendor.mail.html.footer-claim-answer', [ 'brandModel' => $this->claimModel->brand, ])->render(), 'claimModel' => $this->claimModel, 'answer' => $this->answer, ]); } }