public function applyCompany(CompanyService $company, $user_id) { $retrieve = ['job_id', 'message', 'receiver_id']; try { $input = Request::only($retrieve); $response = $company->applyCompanyJob($user_id, $input); if ($response) { return $this->json_response->success($response); } return $this->json_response->error($response); } catch (Exception $e) { return $this->json_response->error(['error' => $e->getMessage()]); } }