name = $name; $this->type = $type; } /** * Build the message. * * @return $this */ public function build() { return $this->view('email-templates.customer-registration')->with(['name'=>$this->name,'type'=>$this->type]); } }