1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #6008 from turbo124/v5-develop

Specify disk for storage operations
This commit is contained in:
David Bomba 2021-06-13 13:57:23 +10:00 committed by GitHub
commit 92bf22bf91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -193,9 +193,11 @@ class CreateEntityPdf implements ShouldQueue
try{
if(!Storage::exists($path))
Storage::makeDirectory($path, 0775);
if(!Storage::disk(config('filesystems.default'))->exists($path))
Storage::disk(config('filesystems.default'))->makeDirectory($path, 0775);
nlog($file_path);
Storage::disk($this->disk)->put($file_path, $pdf);
}

View File

@ -90,8 +90,8 @@ class Phantom
$this->checkMime($pdf, $invitation, $entity);
if(!Storage::exists($path))
Storage::makeDirectory($path, 0775);
if(!Storage::disk(config('filesystems.default'))->exists($path))
Storage::disk(config('filesystems.default'))->makeDirectory($path, 0775);
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);