摘要: ->with(["co_user" => function ($val) { $val->select("nickname");}])模型已与co_user表关联查询结果:"co_user": null后来网上查阅资料,需要将模型中与表关联的外键也一起查询出来才可以显示如下: ->with(["co 阅读全文
posted @ 2020-09-14 11:31 史丹安 阅读(1306) 评论(0) 推荐(1) 编辑