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