diff --git a/app/Models/Cloudflare/API/ZoneModel.php b/app/Models/Cloudflare/API/ZoneModel.php index ae5fc0a..431705c 100644 --- a/app/Models/Cloudflare/API/ZoneModel.php +++ b/app/Models/Cloudflare/API/ZoneModel.php @@ -77,8 +77,8 @@ class ZoneModel extends Model //Index 검색용 public function setIndexWordFilter(string $word) { + $subquery = $this->db->table('cloudflarerecord')->select('zone_uid')->like('content', $word, 'both'); $this->like('domain', $word, 'both'); //befor , after , both - $subquery = $this->db->table('cloudflarerecord')->select('zone_uid')->where('content', $word, 'both'); $this->orWhereIn('uid', $subquery); } public function setIndexDateFilter($start, $end)