Skip to content

Commit 59b1dff

Browse files
Improve SeedCommand console output (#56310)
* Improve `SeedCommand` console output * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 5064292 commit 59b1dff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Illuminate/Database/Console/Seeds/SeedCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,13 @@ public function handle()
6868
$this->resolver->setDefaultConnection($this->getDatabase());
6969

7070
Model::unguarded(function () {
71-
$this->getSeeder()->__invoke();
71+
$seeder = $this->getSeeder();
72+
73+
$this->components->task(get_class($seeder), $seeder);
7274
});
7375

76+
$this->output?->writeln('');
77+
7478
if ($previousConnection) {
7579
$this->resolver->setDefaultConnection($previousConnection);
7680
}

0 commit comments

Comments
 (0)