service = app()->get(AttendanceArrangeService::class); } public function handle() { try { $this->service->saveRecords($this->where,$this->statisticsService,$this->groupService,$this->shiftService); } catch (\Throwable $e) { Log::error(__CLASS__ . ':' . $e->getMessage(), ['file' => $e->getFile(), 'line' => $e->getLine(), 'trace' => $e->getTrace()]); } } }