From 9ca2c3adc9335c6b7256a97e9ebf6186cfc086d8 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 16 Oct 2017 10:38:53 -0500 Subject: [PATCH] update the way seeders are called according to this method https://github.com/laravel/framework/blob/5.5/src/Illuminate/Database/Seeder.php#L32, you can pass an array of classes to the `call` method. looks like the system was setup to work this way, so let's use it in the docs. --- seeding.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/seeding.md b/seeding.md index ddd9ed49729..c7cd0f1d107 100644 --- a/seeding.md +++ b/seeding.md @@ -75,9 +75,11 @@ Within the `DatabaseSeeder` class, you may use the `call` method to execute addi */ public function run() { - $this->call(UsersTableSeeder::class); - $this->call(PostsTableSeeder::class); - $this->call(CommentsTableSeeder::class); + $this->call([ + UsersTableSeeder::class, + PostsTableSeeder::class, + CommentsTableSeeder::class, + ]); }