1To rollback one step:
2
3php artisan migrate:rollback
4
5To rollback multiple steps:
6
7php artisan migrate:rollback --step=[x]
8
9To drop all tables and reload all migrations:
10
11php artisan migrate:fresh
1// use the make:migration Artisan command to generate a database migration
2php artisan make:migration create_flights_table
3
4// use --create to indicate whether the migration will be creating a new table
5php artisan make:migration create_flights_table --create=flights
6
7// use --table to indicate the table name
8php artisan make:migration add_destination_to_flights_table --table=flights
1Schema::table('users', function ($table) {
2 $table->string('email')->after('id')->nullable();
3});