command->getOutput()->progressStart($totalToCreate); for ($i = 0; $i < $totalToCreate; $i += $chunkSize) { $createCount = min($chunkSize, $totalToCreate - $i); User::factory($createCount)->create(); $this->command->getOutput()->progressAdvance($createCount); } $this->command->getOutput()->progressFinish(); } }