diff --git a/resources/stubs/manifest.stub b/resources/stubs/manifest.stub index 18d3b2e7..ff738520 100644 --- a/resources/stubs/manifest.stub +++ b/resources/stubs/manifest.stub @@ -1,7 +1,8 @@ { "name": "{{name}}", "slug": "{{slug}}", - "namespace": "{{namespace}}", "version": "{{version}}", + "author": "{{author}}", + "license": "{{license}}", "description": "{{description}}" } diff --git a/src/Console/Generators/MakeModuleCommand.php b/src/Console/Generators/MakeModuleCommand.php index 8b508686..8b367db1 100644 --- a/src/Console/Generators/MakeModuleCommand.php +++ b/src/Console/Generators/MakeModuleCommand.php @@ -297,8 +297,8 @@ protected function getStubContent($key) protected function formatContent($content) { return str_replace( - ['{{slug}}', '{{name}}', '{{namespace}}', '{{version}}', '{{description}}', '{{author}}', '{{path}}'], - [$this->container['slug'], $this->container['name'], $this->container['namespace'], $this->container['version'], $this->container['description'], $this->container['author'], $this->module->getNamespace()], + ['{{slug}}', '{{name}}', '{{namespace}}', '{{version}}', '{{description}}', '{{author}}', '{{license}}'], + [$this->container['slug'], $this->container['name'], $this->container['namespace'], $this->container['version'], $this->container['description'], $this->container['author'], $this->container['license']], $content ); }