protected function makeCreateMigration(MigrationInput $input, MigrationCapsule $migration)
    {
        $stub = $this->getStubContent('migration', $input->template);

        $blueprint = $this->getCreateTableBlueprint($migration->resource, $input);

        $this->replaceSchemaUp($stub, $this->getSchemaUpCreateCommand($input, $blueprint, 'create'))
            ->replaceSchemaDown($stub, $this->getSchemaDownCreateBlueprint($input))
            ->replaceMigationClassName($stub, $migration->className)
            ->createFile($migration->path, $stub)
            ->info('A migration was crafted successfully.');
    }
protected function makeCreateMigration(MigrationInput $input, MigrationCapsule $migration)
    {
        $stub = $this->getStubContent('migration', $input->template);

        $blueprint = $this->getCreateTableBlueprint($migration->resource, $input);

        $this->replaceSchemaUp($stub, $this->getSchemaUpCreateCommand($input, $blueprint, 'create'))
            ->replaceSchemaDown($stub, $this->getSchemaDownCreateBlueprint($input))
            ->replaceMigationClassName($stub, $migration->className)
            ->createFile($migration->path, $stub)
            ->info('A migration was crafted successfully.');
    }
protected function makeCreateMigration ( MigrationInput $ input , MigrationCapsule $ migration ) { $ stub = $ this -> getStubContent ( 'migration' , $ input -> template ) ; $ blueprint = $ this -> getCreateTableBlueprint ( $ migration -> resource , $ input ) ; $ this -> replaceSchemaUp ( $ stub , $ this -> getSchemaUpCreateCommand ( $ input , $ blueprint , 'create' ) ) -> replaceSchemaDown ( $ stub , $ this -> getSchemaDownCreateBlueprint ( $ input ) ) -> replaceMigationClassName ( $ stub , $ migration -> className ) -> createFile ( $ migration -> path , $ stub ) -> info ( 'A migration was crafted successfully.' ) ; }
Make a create migration

@param CrestApps\CodeGenerator\Models\MigrationInput $input
@param CrestApps\CodeGenerator\Models\MigrationCapsule $migration

@return void
Make a create migration