service = $o; $this->notes = $notes; } /** * Build the message. * * @return $this */ public function build() { Config::set('site',$this->service->site); switch (get_class($this->service->type)) { case Service\Broadband::class: $subject = sprintf('Change BROADBAND: %s',$this->service->type->service_address); break; case Service\Phone::class: $subject = sprintf('Change PHONE: %s',$this->service->type->service_number); break; default: $subject = 'Change Service Request'; } return $this ->markdown('email.admin.service.change') ->subject($subject) ->with(['site'=>$this->service->site]); } }