Question: how to use fpdf in laravel?
Answer: Step 1: Composer. From the command line, run: composer require crabbly/fpdf-laravel. Step 2: Service Provider. For your Laravel app, open config/app.php and, within the providers array, append: Crabbly\Fpdf\FpdfServiceProvider::class. This will bootstrap the package into Laravel.