protected function createModel($input)
    {
        if (!$this->option('without-model')) {
            $this->call(
                'create:model',
                [
                    'model-name' => $input->modelName,
                    '--table-name' => $input->table,
                    '--primary-key' => $input->primaryKey,
                    '--resource-file' => $input->resourceFile,
                    '--model-directory' => $input->modelDirectory,
                    '--with-soft-delete' => $input->withSoftDelete,
                    '--without-timestamps' => $input->withoutTimeStamps,
                    '--template-name' => $input->template,
                    '--force' => $input->force,
                ]
            );
        }

        return $this;
    }
protected function createModel($input)
    {
        if (!$this->option('without-model')) {
            $this->call(
                'create:model',
                [
                    'model-name' => $input->modelName,
                    '--table-name' => $input->table,
                    '--primary-key' => $input->primaryKey,
                    '--resource-file' => $input->resourceFile,
                    '--model-directory' => $input->modelDirectory,
                    '--with-soft-delete' => $input->withSoftDelete,
                    '--without-timestamps' => $input->withoutTimeStamps,
                    '--template-name' => $input->template,
                    '--force' => $input->force,
                ]
            );
        }

        return $this;
    }
protected function createModel ( $ input ) { if ( ! $ this -> option ( 'without-model' ) ) { $ this -> call ( 'create:model' , [ 'model-name' => $ input -> modelName , '--table-name' => $ input -> table , '--primary-key' => $ input -> primaryKey , '--resource-file' => $ input -> resourceFile , '--model-directory' => $ input -> modelDirectory , '--with-soft-delete' => $ input -> withSoftDelete , '--without-timestamps' => $ input -> withoutTimeStamps , '--template-name' => $ input -> template , '--force' => $ input -> force , ] ) ; } return $ this ; }
Executes the command that generates a model.

@param CrestApps\CodeGenerator\Models\ResourceInput $input

@return $this
Executes the command that generates a model .