本文将详细介绍fastadmin后台手动指定要模糊查询的字段,并提供整理的源码和通过示例代码进行说明。
在后台控制器中指定$searchFields的值,若是“关联预载入”,则需要带上表名.字段
protected $searchFields = 'title,merchant.name,merchant.mobile';