for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace A17\Twill\Commands;
use Illuminate\Support\Str;
class ModuleMakeDeprecated extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'twill:module {moduleName}
{--B|hasBlocks}
{--T|hasTranslation}
{--S|hasSlug}
{--M|hasMedias}
{--F|hasFiles}
{--P|hasPosition}
{--R|hasRevisions}
{--all}';
* The console command description.
protected $description = 'Create a new Twill Module (deprecated, use twill:make:module)';
* Executes the console command.
* @return mixed
public function handle()
$this->call('twill:make:module', [
'moduleName' => $this->argument('moduleName'),
] + collect($this->options())->mapWithKeys(function ($value, $key) {
return ["--{$key}" => $value];
})->toArray());
}