You dont need to do anything. Just add a use in the top, and then new it up
use setasign\Fpdi\Fpdi;
//and inside the method
$pdf = new Fpdi();
//do stuff
return $pdf->Output();
I have installed this package composer require setasign/fpdi-fpdf in my laravel application.but i am unable to use this package in controller.My Question is pretty simple what to do in config/app.php so that i can use it in my controller .?Please help me.
Like this https://laravel.com/docs/6.x/responses#creating-responses
return response($pdf->Output())
->header('Content-Type', 'application/pdf')
Please or to participate in this conversation.