code = $code; $this->magasin = $magasin; $this->user = $user; } /** * Build the message. * * @return $this */ public function build() { return $this->subject(sprintf('%s, une personne viens de gagner', config('app.name'))) ->view('emails.userwon')->with([ 'user' => $this->user, 'magasin' => $this->magasin, 'code' => $this->code, ]); } }