repository = $repository; $this->service = $service; } /** * Execute the console command. * * @return mixed */ public function handle() { try { $start = time(); $summit_id = $this->argument('summit_id'); if(empty($summit_id)) throw new \InvalidArgumentException("summit_id is required"); $this->service->recalculateAttendeeStatus(intval($summit_id)); $end = time(); $delta = $end - $start; $this->info(sprintf("execution call %s seconds", $delta)); } catch (Exception $ex) { Log::error($ex); } } }