From ae95f7782472ac26ad4425dea7cecb7d6a1f3862 Mon Sep 17 00:00:00 2001 From: RyanDaDeng <37111049+RyanDaDeng@users.noreply.github.com> Date: Sat, 15 Dec 2018 22:45:41 +1100 Subject: [PATCH 1/5] Update readme.md --- readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/readme.md b/readme.md index 0329445..bcdf053 100644 --- a/readme.md +++ b/readme.md @@ -83,10 +83,6 @@ I try to make the structure as small as possible, there can be many extensions p You can also check [laravel-file-generator](https://github.com/RyanDaDeng/laravel-file-generator) project to create your own structure if you want. -### routes.php - -It's not connected with Laravel, it's just a sample file, you can copy/paste over to your root routes file. Delete it if not needed. - ### Repository-Service Pattern vs Laravel Eloquent There is a debate about whether to implement the repository-service pattern in laravel or not...well, after reading a bunch of blogs, articles and my years' experiences, I can surely tell you Laravel is not designed for using PURE repository-service pattern like Java/Spring. From 8a1eb26a568ae171eeab36f207dc18adc5f762fe Mon Sep 17 00:00:00 2001 From: RyanDaDeng <37111049+RyanDaDeng@users.noreply.github.com> Date: Tue, 25 Dec 2018 22:07:24 +1100 Subject: [PATCH 2/5] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bcdf053..9e6e7ef 100644 --- a/readme.md +++ b/readme.md @@ -6,7 +6,7 @@ ## 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 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. From 460d429c6345b180089ec5cdaddedea0a034a7ac Mon Sep 17 00:00:00 2001 From: RyanDaDeng <37111049+RyanDaDeng@users.noreply.github.com> Date: Thu, 27 Dec 2018 10:57:55 +1100 Subject: [PATCH 3/5] Update readme.md --- readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.md b/readme.md index 9e6e7ef..b6d5ed6 100644 --- a/readme.md +++ b/readme.md @@ -6,6 +6,10 @@ ## IMPORTANT UPDATE +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. From bcae2ff5f6c418090fd6ca4edf1672c513265570 Mon Sep 17 00:00:00 2001 From: RyanDaDeng <37111049+RyanDaDeng@users.noreply.github.com> Date: Thu, 27 Dec 2018 13:16:54 +1100 Subject: [PATCH 4/5] Update ApiRouteTemplate.php --- src/Templates/ApiRouteTemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From 9b36d722f43bd5d955ea46702abff30f86d62537 Mon Sep 17 00:00:00 2001 From: RyanDaDeng <37111049+RyanDaDeng@users.noreply.github.com> Date: Thu, 27 Dec 2018 13:17:22 +1100 Subject: [PATCH 5/5] Update ModelClassTemplate.php --- src/Templates/ModelClassTemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}