From 2e9666c8da422dea8465c1195595affa4118a735 Mon Sep 17 00:00:00 2001 From: Gentrit Abazi Date: Tue, 6 Oct 2020 22:41:25 +0200 Subject: [PATCH 1/2] Replaced get with getWithCount in console command. --- src/Console/Stubs/services/service.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Stubs/services/service.stub b/src/Console/Stubs/services/service.stub index 873d7fb..e2569ce 100644 --- a/src/Console/Stubs/services/service.stub +++ b/src/Console/Stubs/services/service.stub @@ -24,7 +24,7 @@ class DummyClass public function getAll($options = []) { - return $this->dummyVariableRepository->get($options); + return $this->dummyVariableRepository->getWithCount($options); } public function getById($dummyVariableId, array $options = []) From 444f170b03f623439024dffb0b7c885863d9158f Mon Sep 17 00:00:00 2001 From: Gentrit Abazi Date: Tue, 6 Oct 2020 22:45:47 +0200 Subject: [PATCH 2/2] Added more details for command component:make. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 5a50bab..7b6f8ac 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ If we have a scope named "***delivered***" this call will include the scope. If we have a global scope named "**not_delivered**" this call with remove the global scope. ### Create Controller, Service, Repository & Model with one Command. + +If you want to create Controller, Service, Repository, Model, Exceptions and Events with one Command, then you can use: + ```php artisan component:make {parent} {name}``` ### Eager loading