class Illuminate / Database / Console / Migrations / MigrateMakeCommand

MigrateMakeCommand

Extends

Implements

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 (Deprecated)}'
protected

$description string

The console command description.

Default: 'Create a new migration file'
protected

$creator MigrationCreator

The migration creator instance.

Default: null
deprecated 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 ) : void

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).

protected

promptForMissingArgumentsUsing ( ) : array

Prompt for missing input arguments using the returned questions.