protected function createMigration($input)
    {
        if ($input->withMigration) {
            $this->call(
                'create:migration',
                [
                    'model-name' => $input->modelName,
                    '--table-name' => $input->table,
                    '--migration-class-name' => $input->migrationClass,
                    '--connection-name' => $input->connectionName,
                    '--engine-name' => $input->engineName,
                    '--resource-file' => $input->resourceFile,
                    '--template-name' => $input->template,
                    '--without-timestamps' => $input->withoutTimeStamps,
                    '--with-soft-delete' => $input->withSoftDelete,
                    '--force' => $input->force,
                ]
            );
        }

        return $this;
    }
protected function createMigration($input)
    {
        if ($input->withMigration) {
            $this->call(
                'create:migration',
                [
                    'model-name' => $input->modelName,
                    '--table-name' => $input->table,
                    '--migration-class-name' => $input->migrationClass,
                    '--connection-name' => $input->connectionName,
                    '--engine-name' => $input->engineName,
                    '--resource-file' => $input->resourceFile,
                    '--template-name' => $input->template,
                    '--without-timestamps' => $input->withoutTimeStamps,
                    '--with-soft-delete' => $input->withSoftDelete,
                    '--force' => $input->force,
                ]
            );
        }

        return $this;
    }
protected function createMigration ( $ input ) { if ( $ input -> withMigration ) { $ this -> call ( 'create:migration' , [ 'model-name' => $ input -> modelName , '--table-name' => $ input -> table , '--migration-class-name' => $ input -> migrationClass , '--connection-name' => $ input -> connectionName , '--engine-name' => $ input -> engineName , '--resource-file' => $ input -> resourceFile , '--template-name' => $ input -> template , '--without-timestamps' => $ input -> withoutTimeStamps , '--with-soft-delete' => $ input -> withSoftDelete , '--force' => $ input -> force , ] ) ; } return $ this ; }
Executes the command that generates a migration.

@param CrestApps\CodeGenerator\Models\ResourceInput $input

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