codeOverflow codeOverflow - 1 year ago 98
PHP Question

Laravel 5.4 Seeds not seeding all tables

I'm seeding in Laravel 5.4 but it only seeds one table, the others are not seeded.
The seeders were created using the command:

php artisan make:seeder seederName

Answer Source

You should register all seeders in the DatabaseSeeder.php:


Within the DatabaseSeeder class, you may use the call method to execute additional seed classes. Using the call method allows you to break up your database seeding into multiple files so that no single seeder class becomes overwhelmingly large.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download