#773 PDF download naming (#778)

This commit is contained in:
Rm Yakovenko
2022-02-08 04:10:14 +02:00
committed by GitHub
parent 5f53138dc5
commit 9448677dad

View File

@ -16,7 +16,7 @@ trait GeneratesPdfTrait
if ($pdf && file_exists($pdf['path'])) { if ($pdf && file_exists($pdf['path'])) {
return response()->make(file_get_contents($pdf['path']), 200, [ return response()->make(file_get_contents($pdf['path']), 200, [
'Content-Type' => 'application/pdf', 'Content-Type' => 'application/pdf',
'Content-Disposition' => 'inline; filename="'.$pdf['file_name'].'.pdf"', 'Content-Disposition' => 'inline; filename="'.$pdf['file_name'].'"',
]); ]);
} }