mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
fixes for directories
This commit is contained in:
parent
41e39fa9c4
commit
bc621aa01a
@ -146,7 +146,7 @@ class CreateEntityPdf implements ShouldQueue
|
||||
->build();
|
||||
|
||||
//todo - move this to the client creation stage so we don't keep hitting this unnecessarily
|
||||
info("make dir => {$path}");
|
||||
//info("make dir => {$path}");
|
||||
//Storage::makeDirectory($path, 0775);
|
||||
|
||||
$pdf = null;
|
||||
|
@ -37,9 +37,9 @@ class UploadAvatar implements ShouldQueue
|
||||
{
|
||||
|
||||
//make dir
|
||||
info("avatar dir creation => ". $this->directory);
|
||||
// info("avatar dir creation => ". $this->directory);
|
||||
|
||||
Storage::makeDirectory($this->directory, 0775);
|
||||
// Storage::makeDirectory($this->directory, 0775);
|
||||
|
||||
$tmp_file = sha1(time()).'.png';
|
||||
|
||||
|
@ -84,7 +84,7 @@ class GenerateDeliveryNote
|
||||
->design($template)
|
||||
->build();
|
||||
|
||||
Storage::makeDirectory($this->invoice->client->invoice_filepath(), 0775);
|
||||
// Storage::makeDirectory($this->invoice->client->invoice_filepath(), 0775);
|
||||
|
||||
$pdf = $this->makePdf(null, null, $maker->getCompiledHTML());
|
||||
|
||||
|
@ -77,7 +77,7 @@ class Phantom
|
||||
$phantom_url = "https://phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$url}%22,renderType:%22pdf%22%7D";
|
||||
$pdf = CurlUtils::get($phantom_url);
|
||||
|
||||
Storage::makeDirectory($path, 0775);
|
||||
// Storage::makeDirectory($path, 0775);
|
||||
|
||||
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user