From 60b7b9fc153b9258187aebb553985c2d599b265c Mon Sep 17 00:00:00 2001 From: Matt Young Date: Fri, 9 Aug 2024 12:04:05 -0500 Subject: [PATCH] Fix issue with downloading PDF invoices --- app/Http/Controllers/PdfInvoiceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PdfInvoiceController.php b/app/Http/Controllers/PdfInvoiceController.php index 8badc7c..e5a1ffc 100644 --- a/app/Http/Controllers/PdfInvoiceController.php +++ b/app/Http/Controllers/PdfInvoiceController.php @@ -59,7 +59,7 @@ class PdfInvoiceController extends Controller } $this->grandTotal(); $this->output(); - return redirect()->back(); + exit(); } protected function newInvoicePage() @@ -133,7 +133,7 @@ class PdfInvoiceController extends Controller $this->pdf->Cell(2, .3, '$'.number_format($this->invoiceData['grandTotal'], 2), 1); } - public function output($dest = 'I', $name = null) + public function output($dest = 'D', $name = null) { if (! $name) { $name = auditionSetting('auditionAbbreviation').' Invoice for '.$this->school->name.'.pdf';