public function getCompanyJobMatches(CompanyService $company, $user_id, $company_id, $job_id) { try { Session::put('job_id', $job_id); $users = $company->getJobMatches($job_id); Session::forget('job_id'); return $this->json_response->success($users); } catch (Exception $e) { return $this->json_response->error(['error' => $e->getMessage()]); } }