1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Merge pull request #6009 from turbo124/v5-develop

Declare disk for storage
This commit is contained in:
David Bomba 2021-06-13 14:09:52 +10:00 committed by GitHub
commit 3aefc1ba41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -106,8 +106,8 @@ class GenerateDeliveryNote
info($maker->getCompiledHTML());
}
if(!Storage::exists($this->invoice->client->invoice_filepath($invitation)))
Storage::makeDirectory($this->invoice->client->invoice_filepath($invitation), 0775);
if(!Storage::disk($this->disk)->exists($this->invoice->client->invoice_filepath($invitation)))
Storage::disk($this->disk)->makeDirectory($this->invoice->client->invoice_filepath($invitation), 0775);
Storage::disk($this->disk)->put($file_path, $pdf);