Ajay wrote a tutorial on how to generate pdf file from a HTML view in Laravel using the laravel-dompdf package.

pdf laravel

There are lots of packages too that are using to generate pdf and using HTML and CSS, you can easily set the beautiful layout for pdf file.

Using laravel-dompdf library, you can easily generate pdf file in your Laravel web application.

Generating pdf files are helpfull when you are sending report in email from large amount of data then you can convert your html view in single pdf file and then attach with your mail.