Laravel Migration
To create a migration in laravel you can use the make:migration
Lets create a comments table:
php artisan make:migration create_comments_tableĀ --create=comments
The migration file should have a clear name in this case we are creating the comments table, clear enough.
— create= sets the table name
The full features of the make:migrate ( accesible using php arisan help make:migrate)
Usage: make:migration [options] [--] <name> Arguments: name The name of the migration. Options: --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 this 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: 1 for normal output, 2 for more verbose output and 3 for debug