kodcaw = $kodcaw; $this->month = $month; $this->jobId = $jobId; } /** * Execute the job. * * @return void */ public function handle() { $logger = app('job_log'); try { $check = app(AccountService::class); $test =$check->checkAccount( $this->kodcaw,$this->month); Cache::put("job_result_{$this->jobId}", $test, Carbon::now()->addMinutes(10)); Cache::put("job_status_{$this->jobId}", 'completed', Carbon::now()->addMinutes(10)); } catch (\Exception $e) { $logger->error($e); throw $e; } } }