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'
Methods
public
__construct ( MigrationCreator $creator , Composer $composer ) : void
Create a new migration install command instance.
Parameters
- $creator MigrationCreator
- $composer Composer
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.