diff --git a/readme.md b/readme.md index bcdf053..b6d5ed6 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,11 @@ ## IMPORTANT UPDATE -I am working on another new open source project which will re-organise and re-write [Laravel Module](https://github.com/nWidart/laravel-modules) with my own open-source projects, the version will contain more features covered, e.g. support Admin custom setting JSONs, vuejs simple admin, api generators etc. +This project is not finished yet, its still missing a lot features. However, you can still use it if you just want a simple structure. I will slowly update the project in the following days. + +----- + +This is a lightweight module-based boilerplate generator. Please be mind, if you have any issues related to this package, please submit tickets I will only update if there is bugs. diff --git a/src/Templates/ApiRouteTemplate.php b/src/Templates/ApiRouteTemplate.php index a1dc586..305b0ba 100644 --- a/src/Templates/ApiRouteTemplate.php +++ b/src/Templates/ApiRouteTemplate.php @@ -40,7 +40,7 @@ public function getTemplateData() ]; foreach ($this->uri as $uri) { - if ($uri['type'] === 'web') { + if ($uri['type'] === 'api') { $row = [ 'uri' => $uri['uri'], 'method' => $uri['method'], @@ -57,4 +57,4 @@ public function getTemplateData() return $data; } -} \ No newline at end of file +} diff --git a/src/Templates/ModelClassTemplate.php b/src/Templates/ModelClassTemplate.php index 9b4d5a9..b85a919 100644 --- a/src/Templates/ModelClassTemplate.php +++ b/src/Templates/ModelClassTemplate.php @@ -24,7 +24,7 @@ public function getTemplateData() 'use' => [ 'Illuminate\Database\Eloquent\Model' ], - 'class_name' => ucwords($this->moduleName) . ucwords($this->uri), + 'class_name' => ucwords($this->uri), 'extends' => 'Model', 'implements' => [], 'traits' => [ @@ -37,4 +37,4 @@ public function getTemplateData() ]; } -} \ No newline at end of file +}