File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,10 @@ return [
165
165
*/
166
166
'defaultFont' => 'Helvetica',
167
167
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' ),
170
170
'tempDir' => sys_get_temp_dir(),
171
- 'chroot' => sys_get_temp_dir( ),
171
+ 'chroot' => realpath(base_path() ),
172
172
],
173
173
174
174
/**
Original file line number Diff line number Diff line change 97
97
*/
98
98
'defaultFont ' => 'Helvetica ' ,
99
99
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 ' ),
102
102
'tempDir ' => sys_get_temp_dir (),
103
- 'chroot ' => sys_get_temp_dir ( ),
103
+ 'chroot ' => realpath ( base_path () ),
104
104
],
105
105
106
106
/**
You can’t perform that action at this time.
0 commit comments