$pages->first()

Returns the first $page object from the collection

  • return ($page)

Example

<?php echo $page->children()->first()->title() ?>