$file->url(), 'uuid' => (string) $file->uuid(), 'name' => $file->filename(), 'type' => (string) $file->type() ]; if ($file->description()->exists()) { $data['description'] = $file->description()->value(); $data['tags'] = $file->tags()->split(); }; return $data; }