diff --git a/src/Seeder.php b/src/Seeder.php index 4236299..a3ee7c4 100644 --- a/src/Seeder.php +++ b/src/Seeder.php @@ -32,7 +32,8 @@ public function __construct() */ public function __destruct() { - if (get_class($this) != 'DatabaseSeeder') return; // print debug only on main seeder + $seederName = (new \ReflectionClass($this))->getShortName(); + if ($seederName != 'DatabaseSeeder') return; // print debug only on main seeder if (! $this->debug) return;