From 51cd6f71fd2cd7a622b4f20690af23217cc46423 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 12 Jan 2021 19:04:05 +1100 Subject: [PATCH] fixes for tests which handle remote disks --- app/Services/Invoice/GetInvoicePdf.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/Invoice/GetInvoicePdf.php b/app/Services/Invoice/GetInvoicePdf.php index 4ea7d6459a7c..0b7abf1cc7e9 100644 --- a/app/Services/Invoice/GetInvoicePdf.php +++ b/app/Services/Invoice/GetInvoicePdf.php @@ -47,10 +47,10 @@ class GetInvoicePdf extends AbstractService $file_path = CreateEntityPdf::dispatchNow($invitation); } - - return TempFile::path(Storage::disk($disk)->url($file_path)); + if(config('filesystems.default') == 's3') + return TempFile::path(Storage::disk($disk)->url($file_path)); // return Storage::disk($disk)->url($file_path); - // return Storage::disk($disk)->path($file_path); + return Storage::disk($disk)->path($file_path); } }