a 表 软删除
b 表 关联 a 表
那么问题来了,关系已建立,我想通过 b 表找到 a 这个对象
预期的值是这样子的 $b->a->name , 不想多次去查
没睡的小伙伴 求解~
![]() | 1 elvba 2015-12-01 00:01:43 +08:00 ![]() $flight->history()->withTrashed()->get(); |
![]() | 2 leafx OP $this->belongsTo()->withTrashed(); |
![]() | 4 leafx OP CLOSED |