From 82ae345fdfd7aea194fdc15a58dc58235034e5e4 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Wed, 11 Sep 2019 07:03:40 +0530 Subject: [PATCH] Generate products --- app/Console/Commands/GenerateProducts.php | 54 +++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 app/Console/Commands/GenerateProducts.php diff --git a/app/Console/Commands/GenerateProducts.php b/app/Console/Commands/GenerateProducts.php new file mode 100644 index 000000000..332f1af4d --- /dev/null +++ b/app/Console/Commands/GenerateProducts.php @@ -0,0 +1,54 @@ +product = $product; + } + + /** + * Execute the console command. + * + * @return mixed + */ + public function handle() + { + if ($this->argument('value') == 'products') { + $this->comment('Under development.'); + } else { + $this->line('Sorry, generate option is either invalid or does not exist.'); + } + } +}