From df12d43f21157bf914b33968532c8cdb9562049a Mon Sep 17 00:00:00 2001 From: Abby Date: Mon, 11 Jun 2018 15:41:49 -0700 Subject: [PATCH 1/3] Renaming commands to match laravel layout From `backpack:crud-controller` to `backpack:make:controller` --- src/Console/Commands/CrudBackpackCommand.php | 2 +- src/Console/Commands/CrudControllerBackpackCommand.php | 4 ++-- src/Console/Commands/CrudModelBackpackCommand.php | 4 ++-- src/Console/Commands/CrudRequestBackpackCommand.php | 4 ++-- src/Console/Commands/ModelBackpackCommand.php | 4 ++-- src/Console/Commands/RequestBackpackCommand.php | 4 ++-- src/Console/Commands/ViewBackpackCommand.php | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Console/Commands/CrudBackpackCommand.php b/src/Console/Commands/CrudBackpackCommand.php index 0bd5694..5ad6fa2 100644 --- a/src/Console/Commands/CrudBackpackCommand.php +++ b/src/Console/Commands/CrudBackpackCommand.php @@ -12,7 +12,7 @@ class CrudBackpackCommand extends Command * * @var string */ - protected $signature = 'backpack:crud {name}'; + protected $signature = 'backpack:make:crud {name}'; /** * The console command description. diff --git a/src/Console/Commands/CrudControllerBackpackCommand.php b/src/Console/Commands/CrudControllerBackpackCommand.php index c40c270..b372a1f 100644 --- a/src/Console/Commands/CrudControllerBackpackCommand.php +++ b/src/Console/Commands/CrudControllerBackpackCommand.php @@ -11,14 +11,14 @@ class CrudControllerBackpackCommand extends GeneratorCommand * * @var string */ - protected $name = 'backpack:crud-controller'; + protected $name = 'backpack:make:controller'; /** * The name and signature of the console command. * * @var string */ - protected $signature = 'backpack:crud-controller {name}'; + protected $signature = 'backpack:make:crud-controller {name}'; /** * The console command description. diff --git a/src/Console/Commands/CrudModelBackpackCommand.php b/src/Console/Commands/CrudModelBackpackCommand.php index f5bceeb..a207cd6 100644 --- a/src/Console/Commands/CrudModelBackpackCommand.php +++ b/src/Console/Commands/CrudModelBackpackCommand.php @@ -12,14 +12,14 @@ class CrudModelBackpackCommand extends GeneratorCommand * * @var string */ - protected $name = 'backpack:crud-model'; + protected $name = 'backpack:make:model'; /** * The name and signature of the console command. * * @var string */ - protected $signature = 'backpack:crud-model {name}'; + protected $signature = 'backpack:make:model {name}'; /** * The console command description. diff --git a/src/Console/Commands/CrudRequestBackpackCommand.php b/src/Console/Commands/CrudRequestBackpackCommand.php index 4f345e6..06c7c7e 100644 --- a/src/Console/Commands/CrudRequestBackpackCommand.php +++ b/src/Console/Commands/CrudRequestBackpackCommand.php @@ -11,14 +11,14 @@ class CrudRequestBackpackCommand extends GeneratorCommand * * @var string */ - protected $name = 'backpack:crud-request'; + protected $name = 'backpack:make:request'; /** * The name and signature of the console command. * * @var string */ - protected $signature = 'backpack:crud-request {name}'; + protected $signature = 'backpack:make:request {name}'; /** * The console command description. diff --git a/src/Console/Commands/ModelBackpackCommand.php b/src/Console/Commands/ModelBackpackCommand.php index d9679c0..6b27568 100644 --- a/src/Console/Commands/ModelBackpackCommand.php +++ b/src/Console/Commands/ModelBackpackCommand.php @@ -12,14 +12,14 @@ class ModelBackpackCommand extends GeneratorCommand * * @var string */ - protected $name = 'backpack:model'; + protected $name = 'backpack:make:model'; /** * The name and signature of the console command. * * @var string */ - protected $signature = 'backpack:model {name} {--softdelete}'; + protected $signature = 'backpack:make:model {name} {--softdelete}'; /** * The console command description. diff --git a/src/Console/Commands/RequestBackpackCommand.php b/src/Console/Commands/RequestBackpackCommand.php index 0658956..3aeb5b6 100644 --- a/src/Console/Commands/RequestBackpackCommand.php +++ b/src/Console/Commands/RequestBackpackCommand.php @@ -11,14 +11,14 @@ class RequestBackpackCommand extends GeneratorCommand * * @var string */ - protected $name = 'backpack:request'; + protected $name = 'backpack:make:request'; /** * The name and signature of the console command. * * @var string */ - protected $signature = 'backpack:request {name}'; + protected $signature = 'backpack:make:request {name}'; /** * The console command description. diff --git a/src/Console/Commands/ViewBackpackCommand.php b/src/Console/Commands/ViewBackpackCommand.php index d9e8efb..9162e1f 100644 --- a/src/Console/Commands/ViewBackpackCommand.php +++ b/src/Console/Commands/ViewBackpackCommand.php @@ -11,14 +11,14 @@ class ViewBackpackCommand extends GeneratorCommand * * @var string */ - protected $name = 'backpack:view'; + protected $name = 'backpack:make:view'; /** * The name and signature of the console command. * * @var string */ - protected $signature = 'backpack:view {name} {--plain}'; + protected $signature = 'backpack:make:view {name} {--plain}'; /** * The console command description. From a77959dd01c7d3bd7e64bce15252b00aea9d7db6 Mon Sep 17 00:00:00 2001 From: Abby Date: Mon, 11 Jun 2018 15:46:37 -0700 Subject: [PATCH 2/3] clerify model and crud model difference --- src/Console/Commands/CrudControllerBackpackCommand.php | 2 +- src/Console/Commands/CrudModelBackpackCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/Commands/CrudControllerBackpackCommand.php b/src/Console/Commands/CrudControllerBackpackCommand.php index b372a1f..96efef7 100644 --- a/src/Console/Commands/CrudControllerBackpackCommand.php +++ b/src/Console/Commands/CrudControllerBackpackCommand.php @@ -18,7 +18,7 @@ class CrudControllerBackpackCommand extends GeneratorCommand * * @var string */ - protected $signature = 'backpack:make:crud-controller {name}'; + protected $signature = 'backpack:make:controller {name}'; /** * The console command description. diff --git a/src/Console/Commands/CrudModelBackpackCommand.php b/src/Console/Commands/CrudModelBackpackCommand.php index a207cd6..640a427 100644 --- a/src/Console/Commands/CrudModelBackpackCommand.php +++ b/src/Console/Commands/CrudModelBackpackCommand.php @@ -19,7 +19,7 @@ class CrudModelBackpackCommand extends GeneratorCommand * * @var string */ - protected $signature = 'backpack:make:model {name}'; + protected $signature = 'backpack:make:crud-model {name}'; /** * The console command description. From 26a69e9b72872ad21c076cdbcf208ef0cde78671 Mon Sep 17 00:00:00 2001 From: Abby Date: Mon, 11 Jun 2018 15:47:40 -0700 Subject: [PATCH 3/3] clerify crud-request and request difference --- src/Console/Commands/CrudRequestBackpackCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Commands/CrudRequestBackpackCommand.php b/src/Console/Commands/CrudRequestBackpackCommand.php index 06c7c7e..3c9cb4d 100644 --- a/src/Console/Commands/CrudRequestBackpackCommand.php +++ b/src/Console/Commands/CrudRequestBackpackCommand.php @@ -18,7 +18,7 @@ class CrudRequestBackpackCommand extends GeneratorCommand * * @var string */ - protected $signature = 'backpack:make:request {name}'; + protected $signature = 'backpack:make:crud-request {name}'; /** * The console command description.