sticker = $sticker; $this->ticket = $ticket; $this->barcode = $barcode; $this->participation = $participation; $this->user = $user; $this->settings = $settings; } /** * Build the message. * * @return $this */ public function build() { $participation = $this->participation; $user = $this->user; $settings = $this->settings; return $this->subject( $this->settings->name . " : Preuves de gain de " . $this->user->lastname . " " . $this->user->firstname )->view( 'front.basic.winning-proof-email', compact('participation', 'user', 'settings') )->attach($this->sticker)->attach($this->ticket)->attach($this->barcode); } }