diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index 08216b98..56d0407f 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -355,7 +355,7 @@ class InvoiceController extends Controller $message->to('uldvstar@gmail.com'); $message->subject('DO for booking no'.$booking->id); //Attach PDF doc - $message->attachData($do->Output(),'do_booking_no_'.$booking->id.'.pdf', [ + $message->attachData($do->Output('do.pdf', 'S'),'do_booking_no_'.$booking->id.'.pdf', [ 'mime' => 'application/pdf', ]); });