From b3e6b1660a0704df344fcb0cb8822f0ca5330024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Chojnicki?= Date: Fri, 22 May 2020 15:06:18 +0200 Subject: [PATCH] Update Seeder.php Fix - do not print debug info on every seeder but only after main seeder finishes (DatabaseSeeder) --- src/Seeder.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Seeder.php b/src/Seeder.php index ccc433a..4236299 100644 --- a/src/Seeder.php +++ b/src/Seeder.php @@ -32,6 +32,8 @@ public function __construct() */ public function __destruct() { + if (get_class($this) != 'DatabaseSeeder') return; // print debug only on main seeder + if (! $this->debug) return; /* Debug execution time */