$page->index()
Recursively builds a $pages collection with all children, children of children, etc.
-
return ($pages)
Example
// goes through any subpage, subsubpage, etc. below $page and returns them by template
$articles = $page->index()->filterBy('template', 'article');
// the index method is also perfect for searching
$results = $page->index()->search('mysearchword');