F
Filament6mo ago
Stevee

How to structure ZIP files with folders

Im trying to put the files based on the collection tried this, but it return me all file instead foldered based in collection
$downloads = $yourModel->getMedia('downloads');
$downloads2 = $yourModel->getMedia('downloads2');
return MediaStream::create('my-files.zip')->addMedia($downloads)->addMedia($downloads2);
$downloads = $yourModel->getMedia('downloads');
$downloads2 = $yourModel->getMedia('downloads2');
return MediaStream::create('my-files.zip')->addMedia($downloads)->addMedia($downloads2);
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server