Closed vanodevium closed 3 months ago
How to use:
public function someAction() { $archive = Zip::createTemporary(); $archive->addFromString('file1.txt', 'file1 content'); $archive->addFromString('file2.txt', 'file2 content'); return response()->download($archive->closeTemporary()); }
or simple $archive->close() and then use $archive->getTemporaryFilePath()
$archive->close()
$archive->getTemporaryFilePath()
How to use: