public function updateUserJobReference(UserService $user, $user_id, $job_id, $job_reference_id) { $retrieve = ['name', 'mobile_number', 'email', 'title']; try { $input = Request::only($retrieve); $response = $user->updateUserJobReference($job_id, $job_reference_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()]); } }