public function prepareOptions(CommandData &$commandData, $options = null) { if (empty($options)) { $options = self::$availableOptions; } foreach ($options as $option) { $this->options[$option] = $commandData->commandObj->option($option); } if (isset($options['fromTable']) and $this->options['fromTable']) { if (!$this->options['tableName']) { $commandData->commandError('tableName required with fromTable option.'); exit; } } $this->options['softDelete'] = config('infyom.laravel_generator.options.softDelete', false); if (!empty($this->options['skip'])) { $this->options['skip'] = array_map('trim', explode(',', $this->options['skip'])); } if (!empty($this->options['datatables'])) { if (strtolower($this->options['datatables']) == 'true') { $this->addOns['datatables'] = true; } else { $this->addOns['datatables'] = false; } } }