InfyOm\Generator\Commands\BaseCommand::getOptions PHP Method

getOptions() public method

Get the console command options.
public getOptions ( ) : array
return array
    public function getOptions()
    {
        return [['fieldsFile', null, InputOption::VALUE_REQUIRED, 'Fields input as json file'], ['jsonFromGUI', null, InputOption::VALUE_REQUIRED, 'Direct Json string while using GUI interface'], ['tableName', null, InputOption::VALUE_REQUIRED, 'Table Name'], ['fromTable', null, InputOption::VALUE_NONE, 'Generate from existing table'], ['save', null, InputOption::VALUE_NONE, 'Save model schema to file'], ['primary', null, InputOption::VALUE_REQUIRED, 'Custom primary key'], ['prefix', null, InputOption::VALUE_REQUIRED, 'Prefix for all files'], ['paginate', null, InputOption::VALUE_REQUIRED, 'Pagination for index.blade.php'], ['skip', null, InputOption::VALUE_REQUIRED, 'Skip Specific Items to Generate (migration,model,controllers,api_controller,scaffold_controller,repository,requests,api_requests,scaffold_requests,routes,api_routes,scaffold_routes,views,tests,menu,dump-autoload)'], ['datatables', null, InputOption::VALUE_REQUIRED, 'Override datatables settings'], ['views', null, InputOption::VALUE_REQUIRED, 'Specify only the views you want generated: index,create,edit,show']];
    }

Usage Example

 /**
  * Get the console command options.
  *
  * @return array
  */
 public function getOptions()
 {
     return array_merge(parent::getOptions(), []);
 }
All Usage Examples Of InfyOm\Generator\Commands\BaseCommand::getOptions