jobfairRepository = $jobfairRepository; } public function qrcode() { $hashid = request()->input('hashid'); if(Cache::pull($hashid)){ $res = hashid_decode($hashid); $where = [ ['holddate_start', '<', strtotime("+60 minute")], ['holddate_end', '>', time()], ['display', '=', 1], ['subsite_id', '=', get_subsite_id()], ]; $compant_where = [ 'company_id' => $res['id'] ]; $jobfair = $this->jobfairRepository->getOneCompanyOpenJobfair($where,$compant_where); if($jobfair){ $data = [ 'status'=>1, 'jobfair_id'=>$jobfair->id ]; return $this->sendSuccessResponse($data); }else{ $data = [ 'status'=>2, ]; return $this->sendSuccessResponse($data); } } else { $data = [ 'status'=>0, ]; return $this->sendSuccessResponse($data); } } }