ソースを参照

自定义规则增加key搜索

kely 11 ヶ月 前
コミット
3fb91fa2f5
1 ファイル変更4 行追加0 行削除
  1. 4 0
      app/ModelFilters/CustomFieldFilter.php

+ 4 - 0
app/ModelFilters/CustomFieldFilter.php

@@ -19,6 +19,10 @@ class CustomFieldFilter extends ModelFilter
         return $this->where("group", $group);
     }
 
+    public function key($key){
+        return $this->where("key", "like", "%$key%");
+    }
+
     public function batch($batch)
     {
         $in = [];