Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
kieutrongthien committed Dec 29, 2021
1 parent 538b7cc commit e799362
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Commands/ModuleCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function handle()
return 1;
}

$module = strtolower($this->argument('name'));
$module = ucfirst(strtolower($this->argument('name')));
$location = base_path('modules/'.$module);

if (File::isDirectory($location)) {
Expand Down
17 changes: 10 additions & 7 deletions stubs/module.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "{Module}",
"namespace": "Modules\\{Module}\\",
"provider": "Modules\\{Module}\\Providers\\{Module}ServiceProvider",
"author": "N/A",
"url": "N/A",
"version": "1.0",
"description": "The description for module {module}"
}
"namespace": "{Module}",
"code": "{-name}",
"author": "Bieber Kieu",
"url": "https://omaicode.com",
"version": "1.0.0",
"description": "Made with love by Bieber Kieu",
"provider": "\\Modules\\{Module}\\Providers\\{Module}ServiceProvider",
"enable": true,
"order": 0
}

0 comments on commit e799362

Please sign in to comment.