I integrate dompdf
inside my laravel projet.
I return a blade view as PDF and works all fine but I don't know how to show number of pages.
For example I want to show in header Page 1 of 4 ... Page 2 of 4 ... etc
This is how I return the PDF:
$pdf = PDF::loadView('file-pdf', $data);
return $pdf->download('filename.pdf');