(Laravel 4.2)
I have the following schema
A one to many B
B one to many C
C one to one D
Now I know that hasManyThrough
can be used to get A one to many C
, but can I use it to get `A one to many D'?
The way I am doing is right now is getting C using hasManyThrough
and then getting D from C using hasOne()
.
Also is there a way get the inverse relationship, even for simple has many through?