$file->files()

Returns the collection of sibling files including the current object

  • return ($files)

Example

echo 'The first file in the collection is: ' . $file->files()->first()->title();