company = $company; $this->data = $data; } /** * Build the message. * * @return $this */ public function build() { App::forgetInstance('translator'); App::setLocale($this->company->getLocale()); $t = app('translator'); $t->replace(Ninja::transformTranslations($this->company->settings)); $data = array_merge($this->data, [ 'logo' => $this->company->present()->logo(), 'settings' => $this->company->settings, 'company' => $this->company, ]); return $this ->from(config('mail.from.address'), config('mail.from.name')) ->view('email.import.completed', $data); } }