What is the command to run migrations in Laravel?

What is the command to run migrations in Laravel?

a) php artisan migrate
b) php artisan seed
c) php artisan run
d) php artisan db:create

Answer:

a) php artisan migrate

Explanation:

The php artisan migrate command runs all pending migrations, updating the database schema based on the migration files.

Reference:

Laravel Quiz – MCQ – Multiple Choice Questions

Scroll to Top