Laravel Pdfdrive Official

$pdf = Pdf::make('example.pdf', [ 'title' => 'Example PDF', 'content' => 'This is an example PDF generated using Laravel PDF Drive.', ]);

Once you have installed and configured Laravel PDF Drive, you can start generating PDFs in your Laravel application. Here is a basic example of how to generate a PDF: laravel pdfdrive

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 = Pdf::make('example