$files->flip()
Returns the collection in reverse order
-
return ($files)
Example
<ul>
<?php foreach($page->files()->flip() as $file): ?>
<li>
<a href="<?= $file->url() ?>">
<?= html($file->filename()) ?>
</a>
</li>
<?php endforeach ?>
</ul>