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:
@@ -23,7 +23,7 @@ class DownloadBookingDocumentLogic
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @return void
|
||||
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
* @throws MalformedRequestException
|
||||
*/
|
||||
public function execute(Request $request)
|
||||
@@ -48,10 +48,10 @@ class DownloadBookingDocumentLogic
|
||||
}
|
||||
|
||||
$zip->close();
|
||||
|
||||
header('Content-Type: application/zip');
|
||||
header('Content-Length: ' . filesize($attachment));
|
||||
readfile($attachment);
|
||||
return response()->download($attachment)->deleteFileAfterSend(true);
|
||||
// header('Content-Type: application/zip');
|
||||
// header('Content-Length: ' . filesize($attachment));
|
||||
// readfile($attachment);
|
||||
// unlink($attachment);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user