$files * @return array */ protected function storedFileAttachments(array $files): array { return array_map( fn (array $file) => Attachment::fromStorageDisk($file['disk'], $file['path'])->as($file['name']), $files, ); } }