nested relationship can , or distant can be eagerloaded with dot annotation Region::with('countries.tours')->get()
As long as you define the relationship you have no problem at all
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have 3 tables: regions, countries, tours
region has countries and country is related to a region
tours have countries and countries have tours.
Now I need Region has tours and tour has regions (tour can include more than one region depending upon countries it belongs to)
I know "Has Many Through" but this is usable when intermediate relation is one-to-many but my intermediate relation is many-to-many
in an eager loaded relationship... you just query it as normal
$region->countries()->find('id_of_country')->tours()->get()
get the instance of the region.. then find the country you want then load its tours... it is simple as that
Please or to participate in this conversation.