Configurations cleanup & database configurations for mail and pdfs (#479)

* Move Mail, PDF configuration to Database, standardize configurations

* Set default currency to USD on install

* Pint code
This commit is contained in:
Darko Gjorgjijoski
2025-09-19 15:42:53 +02:00
committed by GitHub
parent 3da86965e1
commit 18d63a3375
24 changed files with 943 additions and 435 deletions

View File

@@ -36,12 +36,12 @@ class GotenbergPDFDriver
{
public function loadView(string $viewname): GotenbergPDFResponse
{
$papersize = explode(' ', config('pdf.gotenberg.papersize'));
$papersize = explode(' ', config('pdf.connections.gotenberg.papersize'));
if (count($papersize) != 2) {
throw new \InvalidArgumentException('Invalid Gotenberg Papersize specified');
}
$host = config('pdf.gotenberg.host');
$host = config('pdf.connections.gotenberg.host');
$request = Gotenberg::chromium($host)
->pdf()
->margins(0, 0, 0, 0) // Margins can be set using CSS