Move Mail, PDF configuration to Database, standardize configurations

This commit is contained in:
Darko
2025-09-19 15:22:57 +02:00
parent 3da86965e1
commit c0def45040
24 changed files with 948 additions and 433 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