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:
@@ -41,10 +41,10 @@ class DownloadBookingDocumentLogic
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @return JsonResponse
|
||||
* @return bool
|
||||
* @throws MalformedRequestException
|
||||
*/
|
||||
public function execute(Request $request): JsonResponse
|
||||
public function execute(Request $request)
|
||||
{
|
||||
|
||||
Auth::login(User::findOrFail(1));
|
||||
@@ -66,10 +66,7 @@ class DownloadBookingDocumentLogic
|
||||
}
|
||||
|
||||
$zip->close();
|
||||
return Storage::exists($attachment);
|
||||
File::delete($attachment);
|
||||
|
||||
exit;
|
||||
return Storage::download($attachment);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user