Artisan.page

make:migration

Create a new migration file

Terminal
php artisan make:migration [--create [CREATE]] [--table [TABLE]] [--path [PATH]] [--realpath] [--fullpath] [--] <name>

Options

createOptional

The table to be created

fullpathOptional

Output the full path of the migration

pathOptional

The location where the migration file should be created

realpathOptional

Indicate any provided migration file paths are pre-resolved absolute paths

tableOptional

The table to migrate

Arguments

nameRequired

The name of the migration