public function validateOptions($command)
    {
        if ($command->option('ui') && !in_array($command->option('ui'), ['bootstrap', 'semantic'])) {
            throw new Exception('The UI you selected is not suppported. It must be: bootstrap or semantic.', 1);
        }

        if ((!is_null($command->option('schema')) && !$command->option('migration')) ||
            (!is_null($command->option('relationships')) && !$command->option('migration'))
        ) {
            throw new Exception('In order to use Schema or Relationships you need to use Migrations', 1);
        }

        return true;
    }
public function validateOptions($command)
    {
        if ($command->option('ui') && !in_array($command->option('ui'), ['bootstrap', 'semantic'])) {
            throw new Exception('The UI you selected is not suppported. It must be: bootstrap or semantic.', 1);
        }

        if ((!is_null($command->option('schema')) && !$command->option('migration')) ||
            (!is_null($command->option('relationships')) && !$command->option('migration'))
        ) {
            throw new Exception('In order to use Schema or Relationships you need to use Migrations', 1);
        }

        return true;
    }
public function validateOptions ( $ command ) { if ( $ command -> option ( 'ui' ) && ! in_array ( $ command -> option ( 'ui' ) , [ 'bootstrap' , 'semantic' ] ) ) { throw new Exception ( 'The UI you selected is not suppported. It must be: bootstrap or semantic.' , 1 ) ; } if ( ( ! is_null ( $ command -> option ( 'schema' ) ) && ! $ command -> option ( 'migration' ) ) || ( ! is_null ( $ command -> option ( 'relationships' ) ) && ! $ command -> option ( 'migration' ) ) ) { throw new Exception ( 'In order to use Schema or Relationships you need to use Migrations' , 1 ) ; } return true ; }
Validate the options.

@param \Grafite\CrudMaker\Console\CrudMaker $command

@return bool|Exception
Validate the options .