Generate HTML to PDF, and upload generated PDF to storage (laravel) (Dompdf Library)


Generate HTML to PDF, and upload generated PDF to storage (laravel) (Dompdf Library)
i want to user storeAs()
but it don't work in (Dompdf Library)
how to put the converted pdf file in storage ?$data = ['discription'=>'tifa'];
$pdf =PDF::loadView('file.viewFile',compact('data'))
->storeAs("public/uploud,'filename');
return $pdf->stream(" file.pdf");
storeAs()
$data = ['discription'=>'tifa'];
$pdf =PDF::loadView('file.viewFile',compact('data'))
->storeAs("public/uploud,'filename');
return $pdf->stream(" file.pdf");
laravel-dompdf
dompdf
There is a typo in
->storeAs("public/uploud,'filename');
where you lack a quote "
.– Namoshek
38 mins ago
->storeAs("public/uploud,'filename');
"
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Are you using
laravel-dompdf
or justdompdf
?– Ross Wilson
44 mins ago