mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 20:43:56 +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::disk('documents')->path('collection/'.$zip_file);
|
||||
dd(storage_path('collection/'.$zip_file));
|
||||
$attachment = storage_path('/documents/collections/'.$zip_file);
|
||||
|
||||
$zip = new ZipArchive();
|
||||
if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
|
||||
|
||||
@@ -67,7 +67,7 @@ dd(storage_path('collection/'.$zip_file));
|
||||
|
||||
$zip->close();
|
||||
|
||||
return Storage::download($attachment);
|
||||
return Storage::download('/documents/collections/'.$zip_file);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user