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