A bit late to the party here but you can do this:
$this->command->line('Updating stuff...');
From your Seeder class
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Inside Console/Commands/UpdateStuff.php I have a bunch of feedback lines, like:
$this->line('Updating stuff...');
When I run php artisan update:stuff all works fine and I see the 'Updating stuff...' line in the console.
But now I want to run this from a seeder.
So inside FooBarTableSeeder I have:
Artisan::call('stuff:update');
When I run php artisan db:seed --class=FooBarTableSeeder the Command is executed.
But there is no output to the console.
So question: How can I make the Command output to the $this->command of the Seeder?
Please or to participate in this conversation.