protected function test() { $comics = \App\Comics::all(); foreach ($comics as $comic) { $this->curl_run($comic->id, $comic->onlineId); } }
/** * Execute the console command. * * @return mixed */ public function handle() { $comics = \App\Comics::all(); foreach ($comics as $comic) { $this->curl_run($comic->id, $comic->onlineId); } Log::info("Comic update finished "); }