$pages->findBy($key, $value)

Finds a single $page object in the collection by $key and $value

  • $key (string)
  • $value (mixed)
  • return ($page)

Example

<?= $page->children()->findBy('uid', 'some-page')->title() ?>