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:
commit
3aefc1ba41
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user