Load nested relationships #420
arthurkirkosa
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Great idea @arthurkirkosa ! Is the output here what you get now, or how you'd prefer to get it? |
Beta Was this translation helpful? Give feedback.
1 reply
-
7.x+ implemented the feature |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to be able to have nested relationships when getting data through the api, follow the below steps.
In our example we need to load
CraftCode
s with relatedBillingRate
s and for eachBillingRate
we need theBillingRateType
Setup
BillingRate
model (Eloquent)BillingRateRepository
(Restify)CraftCodeRepository
(Restify)Gab all craft codes with billing rates and rate types
Output
Beta Was this translation helpful? Give feedback.
All reactions