Consolidate PDF classes under app/Services/Pdf with consistent naming

Split PDFService.php (3 classes + 2 interfaces in one file) into separate
files. Move GotenbergPDFDriver from app/Services/PDFDrivers/ into
app/Services/Pdf/. Normalize casing from ALL-CAPS PDF to Pdf throughout:
facade, provider, service, driver factory, and Gotenberg driver.

Fix PaymentService using Barryvdh DomPDF facade directly instead of the
app's PDF facade (bypassed the driver factory). Report controllers also
updated to use the app facade.
This commit is contained in:
Darko Gjorgjijoski
2026-04-03 16:18:25 +02:00
parent e0b8b86e06
commit 129028518d
21 changed files with 156 additions and 150 deletions

View File

@@ -4,7 +4,7 @@ namespace App\Services;
use App;
use App\Facades\Hashids;
use App\Facades\PDF;
use App\Facades\Pdf;
use App\Mail\SendInvoiceMail;
use App\Models\Company;
use App\Models\CompanySetting;
@@ -262,6 +262,6 @@ class InvoiceService
return view($templatePath);
}
return PDF::loadView($templatePath);
return Pdf::loadView($templatePath);
}
}