Yeah, this does not seem to work anymore. I’ll check it out.
Edit: This should work:
<?php
$articles = $page->children()->visible()->filter(function($child) {
return $child->content(site()->language()->code())->exists();
});
Yeah, this does not seem to work anymore. I’ll check it out.
Edit: This should work:
<?php
$articles = $page->children()->visible()->filter(function($child) {
return $child->content(site()->language()->code())->exists();
});