$files->keys()

Returns an array with all filenames in the collection.

  • return (array)

Example

Example Files

  • document.pdf
  • numbers.xls
  • myimage.jpg
  • download.zip
<?php dump($page->files()->keys()) ?>
/*
array(
  'document.pdf',
  'numbers.xls',
  'myimage.jpg',
  'download.zip'
)
*/

Is something missing or incorrect? Edit this page on Github…