添加农作物名称搜索

dev
vine_liutk 2022-11-15 15:12:33 +08:00
parent 25c7888f52
commit 7f1d7de2ef
1 changed files with 5 additions and 0 deletions

View File

@ -36,4 +36,9 @@ class CropFilter extends ModelFilter
{
return $this->where('parent_id', $parentId);
}
public function name($name)
{
return $this->where('name', 'like', '%'.$name.'%');
}
}