Skip to content

Commit 3e11875

Browse files
committed
update config
1 parent 5cf6cea commit 3e11875

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ return [
165165
*/
166166
'defaultFont' => 'Helvetica',
167167

168-
'fontDir' => sys_get_temp_dir(),
169-
'fontCache' => sys_get_temp_dir(),
168+
'fontDir' => storage_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
169+
'fontCache' => storage_path('fonts'),
170170
'tempDir' => sys_get_temp_dir(),
171-
'chroot' => sys_get_temp_dir(),
171+
'chroot' => realpath(base_path()),
172172
],
173173

174174
/**

config/invoices.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@
9797
*/
9898
'defaultFont' => 'Helvetica',
9999

100-
'fontDir' => sys_get_temp_dir(),
101-
'fontCache' => sys_get_temp_dir(),
100+
'fontDir' => storage_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
101+
'fontCache' => storage_path('fonts'),
102102
'tempDir' => sys_get_temp_dir(),
103-
'chroot' => sys_get_temp_dir(),
103+
'chroot' => realpath(base_path()),
104104
],
105105

106106
/**

0 commit comments

Comments
 (0)