firstname = $firstname; $this->customer = $customer; } /** * Build the message. * * @return $this */ public function build() { $customer = $this->customer; $firstname = $this->firstname; $slugMoment = Moments::where('star_moment', 1)->first()->slug; return $this->subject("Confirmation d'inscription au Club Le Gaulois")->view('front.mails.register-ok', compact('customer', 'firstname', 'slugMoment')); } }