Laravel Migrations
Laravel Migrations is a version control system for databases that allows defining, modifying, and deleting tables. Migrations make collaboration within a team easier.
Creating a Migration
Running Migrations
This command executes all the up methods of migration files that have not yet been executed.
Checking the Status of Migrations
Rolling Back Migrations
This command executes all the down methods of migration files that were previously executed by the php artisan migrate command.
Specifying How Many php artisan migrate Commands to Roll Back
In this case, all the down methods of migration files that were applied with the last three php artisan migrate commands will be executed.