What is the function of Laravel Seeder?

What is the function of Laravel Seeder?

a) To define relationships between database tables
b) To populate the database with dummy data
c) To configure the Laravel environment
d) To create migrations

Answer:

b) To populate the database with dummy data

Explanation:

Laravel seeders are used to populate the database with test or dummy data during development.

Reference:

Laravel Quiz – MCQ – Multiple Choice Questions

Scroll to Top