Exemplo n.º 1
0
 public function checkCompanyJobSkillArchive($job_id, $skill_id)
 {
     try {
         if (CompanyJobSkill::withTrashed()->where('skill_id', '=', $skill_id)->where('job_id', '=', $job_id)->count() == 1) {
             return true;
         }
         return false;
     } catch (Exception $e) {
         return Response::json(['error' => $e->getMessage()]);
     }
 }