exception = $exception; $this->content = $content; $this->company = $company; } /** * Build the message. * * @return $this */ public function build() { App::setLocale($this->company->getLocale()); $special_message = ''; if ($this->exception instanceof ClientHostedMigrationException) { $special_message = $this->content; } return $this ->from(config('mail.from.address'), config('mail.from.name')) ->text('email.migration.failed_text') ->view('email.migration.failed', [ 'special_message' => $special_message, 'logo' => $this->company->present()->logo(), 'settings' => $this->company->settings, 'is_system' => $this->is_system, ]); } }