data = (object) $data; } /** * Build the message. * * @return mixed */ public function build(): mixed { return $this ->subject('[MAIL] Une erreur est survenue') ->view('bo.mails.sendflyerfailed', ['data' => $this->data]); } }