$rows = syo::relation(['symerchants' => function ($query) {
$query->field('id,name');
}])->where($where)->paginate(8);
$m = syo::field('id,mid')->with(['symerchants' => function ($query) {
$query->field('id,name');
}])
tp5 with 问题 多表 model 模型 hasone hasmany
最新推荐文章于 2024-07-12 23:32:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)