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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

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");





Are you using laravel-dompdf or just dompdf?
– Ross Wilson
44 mins ago


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.

Comments

Popular posts from this blog

Executable numpy error

Trying to Print Gridster Items to PDF without overlapping contents

Hystrix command on request collapser fallback