That’s exactly what I ended up doing:
foreach ($page->children()->filterBy('languages', $site->language()->code(), ',') as $child) {
...
}
I feel like there should be an easier, native way to achieve this.
That’s exactly what I ended up doing:
foreach ($page->children()->filterBy('languages', $site->language()->code(), ',') as $child) {
...
}
I feel like there should be an easier, native way to achieve this.