Fixes for directory paths

This commit is contained in:
David Bomba 2023-11-01 20:09:27 +11:00
parent 4362f279d9
commit 283b1e8e25
2 changed files with 6 additions and 8 deletions

View File

@ -440,7 +440,7 @@ class CompanyExport implements ShouldQueue
$path = 'backups'; $path = 'backups';
Storage::makeDirectory(storage_path('backups/')); // Storage::makeDirectory(storage_path('backups/'));
try { try {
mkdir(storage_path('backups/')); mkdir(storage_path('backups/'));

View File

@ -175,16 +175,14 @@ class FacturaEInvoice extends AbstractService
->setBillingPeriod() ->setBillingPeriod()
->signDocument(); ->signDocument();
$disk = config('filesystems.default'); // $disk = config('filesystems.default');
if (!Storage::disk($disk)->exists($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()))) { // if (!Storage::disk($disk)->exists($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()))) {
Storage::makeDirectory($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first())); // Storage::makeDirectory($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()));
} // }
// $this->fac->export(Storage::disk($disk)->path($this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()) . $this->invoice->getFileName("xsig")));
return $this->fac->export(); return $this->fac->export();
// return $this->invoice->client->e_invoice_filepath($this->invoice->invitations->first()) . $this->invoice->getFileName("xsig");
} }
/** Check if this is a public administration body */ /** Check if this is a public administration body */