Spatie has a modern package spatie/laravel-pdf for generating PDF files with some design customizations. This tutorial will show how to generate a PDF file using that package.
When generating a PDF with DomPDF package, you may need a PDF with more than one page. For such cases, you may want to add page numbers at the bottom of page. Here's how.