This commit is contained in:
parent
6d70187cb9
commit
c578538fe0
10 changed files with 195 additions and 107 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue