コード例 #1
0
 /**
  * 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();
         }
     }
 }