示例#1
0
 public function updateCompanyJobSkill(CompanyService $company, $user_id, $company_id, $job_id, $skill_id)
 {
     $retrieve = ['skill_id', 'rate'];
     try {
         $input = Request::only($retrieve);
         $response = $company->updateCompanyJobSkill($job_id, $skill_id, $input);
         if (!empty($response)) {
             return $this->json_response->success($response);
         }
         return $this->json_response->error($response);
     } catch (Exception $e) {
         return $this->json_response->error(['error' => $e->getMessage()]);
     }
 }