This commit is contained in:
isUnknown 2024-12-19 19:27:38 +01:00
parent 6d70187cb9
commit c578538fe0
10 changed files with 195 additions and 107 deletions

View file

@ -12,6 +12,11 @@ function getFileData($file) {
'name' => $file->filename(),
'label' => (string) $file->label(),
'type' => (string) $file->type(),
'cover' => $file->cover()->isNotEmpty() ? $file->cover()->toFile()->thumb([
'width' => 1000,
'quality' => 80,
'format' => 'webp'
])->url() : null
];
if ($file->description()->exists()) {