2017-09-14 22:21:00 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace $NAMESPACE$;
|
|
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Symfony\Component\Console\Input\InputOption;
|
|
|
|
use Symfony\Component\Console\Input\InputArgument;
|
|
|
|
|
|
|
|
class $CLASS$ extends Command
|
|
|
|
{
|
|
|
|
/**
|
2020-10-17 14:53:24 +03:00
|
|
|
* The name and signature of the console command.
|
2017-09-14 22:21:00 +03:00
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-10-17 14:53:24 +03:00
|
|
|
protected $signature = '$COMMAND_NAME$';
|
2017-09-14 22:21:00 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The console command description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $description = 'Command description.';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new command instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Execute the console command.
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2019-11-16 10:21:14 +03:00
|
|
|
public function handle()
|
2017-09-14 22:21:00 +03:00
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the console command arguments.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
protected function getArguments()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
['example', InputArgument::REQUIRED, 'An example argument.'],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the console command options.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
protected function getOptions()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|