Options: -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
Available commands: help Displays helpfor a command list Lists commands migrate Run the database migrations db db:wipe Drop all tables, views, and types make make:migration Create a new migration file migrate migrate:fresh Drop all tables and re-run all migrations migrate:install Create the migration repository migrate:refresh Reset and re-run all migrations migrate:reset Rollback all database migrations migrate:rollback Rollback the last database migration
比如创建迁移文件:
1 2
$ php artisan make:migration create_users_table Created Migration: 2019_11_24_135530_create_users_table