fixes for tests which handle remote disks
This commit is contained in:
parent
1432605211
commit
51cd6f71fd
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue