diff --git a/app/Models/Cloudflare/AuditLogModel.php b/app/Models/Cloudflare/AuditLogModel.php index 50e01c2..67753f2 100644 --- a/app/Models/Cloudflare/AuditLogModel.php +++ b/app/Models/Cloudflare/AuditLogModel.php @@ -59,7 +59,7 @@ class AuditLogModel extends CommonModel { switch ($field) { default: - $this->orderBy(self::TITLE, 'asc'); + $this->orderBy('zone_name', 'asc'); $options = parent::getFormFieldInputOption($field, $options); break; } @@ -85,4 +85,12 @@ class AuditLogModel extends CommonModel { return $this->modify_process($entity, $formDatas); } + //List 검색용 + public function setList_WordFilter(string $word, $field = null): void + { + parent::setList_WordFilter($word, $field); + $this->orLike(self::TABLE . '.zone_name', $word, 'both'); + $this->orLike(self::TABLE . '.resource_name', $word, 'both'); + } + } }