I have a Laravel project which allows to upload photos and they are stored S3 bucket.
At particular times, it's needed to download an entire album which is a folder in S3 bucket storage. So, it should be downloaded as a ZIP file that includes photos of that album.
I managed to do this when these are stored on local storage.
public function downloadZip() {
$files = glob(public_path('js/*'));
Zipper::make('mydir/mytest3.zip')->add($files);
return response()->download(public_path('mydir/mytest3.zip'));
}
But, in S3 bucket, that method is not working.
Is there a way to do this ?