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