You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I then make a request to the endpoint with ?include=server I can see that the server relationship is queried again. Is it possible, using the existing Server model that was queried in the route model binding, to load that relationship in if?include includes server?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey all,
I've probably missed something obvious here, but worth asking.
Let's say I have an API endpoint:
This endpoint returns the
Site
instance that's loaded from the route model binding. I'm using query builder to do:If I then make a request to the endpoint with
?include=server
I can see that theserver
relationship is queried again. Is it possible, using the existingServer
model that was queried in the route model binding, to load that relationship in if?include
includes server?Beta Was this translation helpful? Give feedback.
All reactions