class Illuminate / Database / Console / Migrations / MigrateMakeCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.

MigrateMakeCommand

Extends

Properties

protected

$signature string

The console command signature.

Default: 'make:migration {name : The name of the migration} {--create= : The table to be created} {--table= : The table to migrate} {--path= : The location where the migration file should be created} {--realpath : Indicate any provided migration file paths are pre-resolved absolute paths} {--fullpath : Output the full path of the migration}'
protected

$description string

The console command description.

Default: 'Create a new migration file'
protected

$creator MigrationCreator

The migration creator instance.

Default: null
protected

$composer Composer

The Composer instance.

Default: null

Methods

public

__construct ( MigrationCreator $creator , Composer $composer ) : void

Create a new migration install command instance.

Parameters

public

handle ( ) : void

Execute the console command.

protected

writeMigration ( $name , $table , $create ) : string

Write the migration file to disk.

Parameters

  • $name string
  • $table string
  • $create bool
protected

getMigrationPath ( ) : string

Get migration path (either specified by '--path' option or default location).