public function handle()
{
$this->output->progressStart(10);
for ($i = 0; $i < 10; $i++) {
sleep(1);
$this->output->progressAdvance();
}
$this->output->progressFinish();
}
public function handle()
{
$datas = Model::all();
$bar = $this->output->createProgressBar($datas->count());
$datas->each(function ($data) use ($bar) {
try {
// do something
} catch (Exception $e) {
$this->error('Error');
}
$bar->advance();
});
}