Answers for "how to save a pdf file in laravel 8"

PHP
1

how to save information on pdf file in laravel project

$pdf = PDF::loadView('pdf.invoice', $data);

Storage::put('public/pdf/invoice.pdf', $pdf->output());

return $pdf->download('invoice.pdf');
Posted by: Guest on October-02-2020

Code answers related to "how to save a pdf file in laravel 8"

Browse Popular Code Answers by Language