$files->not()
Returns the collection without a given file. The ignored file can be passed by filename or entire file object.
-
return ($files)
Example
<ul>
<?php foreach($page->files()->not('ignored-file.pdf') as $file): ?>
<li>
<a href="<?= $file->url() ?>">
<?= html($file->filename()) ?>
</a>
</li>
<?php endforeach ?>
</ul>