Laravel 5.4 Seeds Not Seeding All Tables
1 answer
You must register all planters in DatabaseSeeder.php
:
$this->call(UsersTableSeeder::class);
$this->call(PostsTableSeeder::class);
$this->call(CommentsTableSeeder::class);
Within the DatabaseSeeder class, you can use a call method to execute additional seed classes. Using the invocation method allows you to split the database seeding into multiple files so that no planter class gets more and more significant.
https://laravel.com/docs/5.4/seeding#calling-additional-seeders
+3
source to share