简体   繁体   中英

Inverse relation of hasManyThrough in Laravel

Which is the inverse relation of hasManyThrough in Laravel?

es A->B->C

in class A:
return $this->hasManyThrough('C','B');

in class C:
which is the relation to return A objects?

thank you

Not sure if it really exists the literal "belongsToManyThrough" as i tried it and i am using Laravel 5.8. It didn't work. The best thing still would be C->B->A->property

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM