Eloquent中hasManyThrough用法


当前模型A
return $this->hasManyThrough('模型B','模型C','C字段id','B字段b_id',‘当前模型字段m_id’);
已知模型B的c_id与C的id关联,本模型的m_id与B的m_id关联,现在获取的sql却是本模型的m_id与B的id关联,我该如何修改


Vote Vote Cancel Collect Collect Cancel

<< 上一篇: Serialization of 'Closure' is not allowed in serialize

>> 下一篇: 分页