Migrations can be defined as version control for the database, which allows us to modify and share the application’s database schema easily. Migrations are commonly paired with Laravel’s schema builder to build the application’s database schema easily.
A migration file includes two methods, up() and down(). A method up() is used to add new tables, columns or indexes database and the down() method is used to reverse the operations performed by the up() method.
We can generate a migration and its file by using the make:migration.
Syntax
php artisan make:migration blog
By using it, a current date blog.php file will be created in database/migrations