$pages->flip()

Returns the collection in reverse order

  • return ($pages)

Example

<?php $articles = $page->children()->flip() ?>