添加农作物名称搜索
parent
25c7888f52
commit
7f1d7de2ef
|
|
@ -36,4 +36,9 @@ class CropFilter extends ModelFilter
|
||||||
{
|
{
|
||||||
return $this->where('parent_id', $parentId);
|
return $this->where('parent_id', $parentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function name($name)
|
||||||
|
{
|
||||||
|
return $this->where('name', 'like', '%'.$name.'%');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue