alias = $alias; $this->company_id = $company_id; $this->locale = $locale ?: app()->getLocale(); } /** * Execute the job. * * @return string */ public function handle() { $command = "module:install {$this->alias} {$this->company_id} {$this->locale}"; $result = Console::run($command); if ($result !== true) { $message = !empty($result) ? $result : trans('modules.errors.finish', ['module' => $this->alias]); throw new \Exception($message); } } }