laravel['modules']->findOrFail($this->getModuleName()); return (new Stub('/' . $this->argument('class') . '.stub', [ 'NAMESPACE' => $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.' . $this->argument('class')), 'LOWER_NAME' => $module->getLowerName(), 'CLASS' => $this->getClass(), 'STUDLY_NAME' => Str::studly($module->getLowerName()), ]))->render(); } public function getDestinationFilePath() { $path = $this->laravel['modules']->getModulePath($this->getModuleName()); $seederPath = $this->laravel['modules']->config('paths.generator.' . $this->argument('class')); return $path . $seederPath . '/' . $this->getFileName() . '.php'; } /** * @return string */ protected function getFileName() { return studly_case($this->argument('name')) . Str::studly($this->argument('class')); } }