mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 02:04:35 -04:00
Specify disk for storage operations
This commit is contained in:
parent
5987967f9c
commit
55918d772c
@ -193,9 +193,11 @@ class CreateEntityPdf implements ShouldQueue
|
|||||||
|
|
||||||
try{
|
try{
|
||||||
|
|
||||||
if(!Storage::exists($path))
|
if(!Storage::disk(config('filesystems.default'))->exists($path))
|
||||||
Storage::makeDirectory($path, 0775);
|
Storage::disk(config('filesystems.default'))->makeDirectory($path, 0775);
|
||||||
|
|
||||||
|
nlog($file_path);
|
||||||
|
|
||||||
Storage::disk($this->disk)->put($file_path, $pdf);
|
Storage::disk($this->disk)->put($file_path, $pdf);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -90,8 +90,8 @@ class Phantom
|
|||||||
|
|
||||||
$this->checkMime($pdf, $invitation, $entity);
|
$this->checkMime($pdf, $invitation, $entity);
|
||||||
|
|
||||||
if(!Storage::exists($path))
|
if(!Storage::disk(config('filesystems.default'))->exists($path))
|
||||||
Storage::makeDirectory($path, 0775);
|
Storage::disk(config('filesystems.default'))->makeDirectory($path, 0775);
|
||||||
|
|
||||||
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);
|
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user