Example #1
0
 public function getExpiredJobPost(CompanyService $company, $user_id, $company_id)
 {
     try {
         $search = Request::has('search') ? Request::get('search') : null;
         return $this->json_response->success($company->retrieveJobPost('expired', 'published', $company_id, $search));
     } catch (Exception $e) {
         return $this->json_response->error(['error' => $e->getMessage()]);
     }
 }