What is the role of migrations in Laravel?

What is the role of migrations in Laravel?

a) To create routes
b) To manage database schema
c) To handle form validation
d) To configure the application environment

Answer:

b) To manage database schema

Explanation:

Migrations in Laravel are used to manage database schema changes, allowing developers to create, modify, and rollback database tables programmatically.

Reference:

Laravel Quiz – MCQ – Multiple Choice Questions

Scroll to Top