Laravel Pdfdrive Direct

return $pdf->stream(); In this example, we create a new PDF instance using the Pdf::make() method, passing in the PDF file name and an array of PDF options. We then return the PDF instance using the stream() method, which outputs the PDF to the browser.

$pdf->footer('Page {PAGENO}', 10, 'italic'); laravel pdfdrive

use PDFDrive\LaravelPdf\Facades\Pdf;