示例#1
0
 public function getJobPostId(CompanyService $company, $job_id)
 {
     try {
         $response = $company->getJobPostById($job_id);
         if ($response) {
             return $this->json_response->success($response);
             if (Request::has('employer') && !$employer_status) {
                 Session::forget('user_id');
             }
         }
         return $this->json_response->error($response);
     } catch (Exception $e) {
         return $this->json_response->error(['error' => $e->getMessage()]);
     }
 }