Beispiel #1
0
 public function userBanJob(UserService $user, $user_id)
 {
     $retrieve = ['job_ids'];
     try {
         $input = Request::only($retrieve);
         foreach ($input['job_ids'] as $job_id) {
             $user->banCompanyJob($user_id, $job_id);
         }
         return $this->json_response->success();
     } catch (Exception $e) {
         return $this->json_response->error(['error' => $e->getMessage()]);
     }
 }