$page->files()
Returns the Files collection
Return type
Parent class
Example
Note that the default sorting order of files is according to their order in the file system. To sort files by their manual sorting order, you can use $files->sortBy('sort')
, where sort is the field that stores the sorting number if you manually sort files in the Panel.