Skip to content

Commit 4cb4aab

Browse files
committed
Inherits default DomPDF options from container and merges package specific options. resolves #186
1 parent 9f55f4c commit 4cb4aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function __construct($name = '')
198198
$this->paperOptions = config('invoices.paper');
199199

200200
// DomPDF options
201-
$this->options = config('invoices.dompdf_options') ?? ['enable_php' => true];
201+
$this->options = array_merge(app('dompdf.options'), config('invoices.dompdf_options') ?? ['enable_php' => true]);
202202

203203
$this->disk = config('invoices.disk');
204204
$this->table_columns = static::TABLE_COLUMNS;

0 commit comments

Comments
 (0)