mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 14:33:59 +00:00
download billing documents
This commit is contained in:
@@ -49,8 +49,8 @@ class DownloadBookingDocumentLogic
|
||||
|
||||
Auth::login(User::findOrFail(1));
|
||||
$zip_file = $request->input('type').'.zip';
|
||||
$attachment = storage_path().'/' . $zip_file;
|
||||
|
||||
$attachment = storage_path().'/app/documents/collections/' . $zip_file;
|
||||
dd(Storage::disk('documents'));
|
||||
$zip = new ZipArchive();
|
||||
if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user