/** * Execute the console command. * * @return mixed */ public function fire() { while (true) { $result = Series::whereNeedsUpdate(true)->take(100)->get(); if (count($result) === 0) { break; } foreach ($result as $series) { printf("%s (#%d)\n", $series->name, $series->id); $series->updateMuData(); } } }