mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
download billing documents
This commit is contained in:
@@ -50,7 +50,7 @@ class DownloadBookingDocumentLogic
|
||||
Auth::login(User::findOrFail(1));
|
||||
$zip_file = $request->input('type').'.zip';
|
||||
$attachment = storage_path().'/app/documents/collections/' . $zip_file;
|
||||
dd(Storage::disk('documents'));
|
||||
|
||||
$zip = new ZipArchive();
|
||||
if ($zip->open($attachment, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
|
||||
|
||||
@@ -66,7 +66,7 @@ dd(Storage::disk('documents'));
|
||||
}
|
||||
|
||||
$zip->close();
|
||||
return Storage::download($attachment);
|
||||
return Storage::disk('documents')->download('collections/' . $zip_file);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user