[英]Inverse relation of hasManyThrough in Laravel
Laravel中hasManyThrough的逆關系是什么?
es A-> B-> C
在A類中:
返回$ this-> hasManyThrough('C','B');
在C類中:
返回A對象的關系是什么?
謝謝
我不確定它是否確實存在文字“ belongsToManyThrough”,而我正在使用Laravel 5.8。 沒用 最好的還是C->B->A->property
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.