This repository was archived by the owner on Apr 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
MigrationMakeCommand
Ferdinand Frank edited this page Oct 9, 2017
·
1 revision
Creates a new Laravel migration file.
php artisan make:migration [options] <name>
| Argument | Description | Note |
|---|---|---|
| name | The name of the migration | Required |
| Option | Description | Default |
|---|---|---|
| --create[=CREATE] | The table to be created | |
| --table[=TABLE] | The table to migrate | |
| --path[=PATH] | The location where the migration file should be created. | |
| -h, --help | Display a help message | |
| -q, --quiet | Do not output any message | |
| -V, --version | Display this application version | |
| --ansi | Force ANSI output | |
| --no-ansi | Disable ANSI output | |
| -n, --no-interaction | Do not ask any interactive question | |
| --env[=ENV] | The environment the command should run under | |
| -v|vv|vvv, --verbose | Increase the verbosity of messages |
This table gives you an overview when which stub file is used as a template to create the php file.
| Stub | Command Restriction |
|---|---|
| migration.create.stub | Used when option --create[=CREATE] is provided |
| migration.update.stub | Used when option --table[=TABLE] is provided |
| migration.blank.stub | Used when none of the above options is provided |