$files->flip()

Returns the collection in reverse order

  • return ($files)

Example

<ul>
  <?php foreach($page->files()->flip() as $file): ?>
  <li>
    <a href="<?php echo $file->url() ?>">
      <?php echo html($file->filename()) ?>
    </a>
  </li>
  <?php endforeach ?>
</ul>