Skip to content

Laravel · Integration

Laravel integration

Use nextpdf/laravel to resolve fresh NextPDF documents from the service container, return Portable Document Format (PDF) responses from controllers, and queue document generation.

PageUse it for
OverviewPackage scope and supported workflows.
InstallComposer installation and Laravel registration.
QuickstartYour first controller response.
Configurationconfig/nextpdf.php keys, environment variables, and defaults.
APIFacade methods, response helpers, and the queue job constructor.
Developer guideContainer lifecycle, worker safety, queues, and extension points.
Production usageDeployment and operations patterns.
Security and operationsHeaders, paths, secrets, and queue safety.
TroubleshootingCommon failures and diagnostic steps.
SymbolRole
NextPDF\Laravel\Facades\PdfStatic facade for the PdfDocumentInterface container binding.
NextPDF\Laravel\Http\PdfResponseInline, download, streamed inline, and streamed download responses.
NextPDF\Laravel\Jobs\GeneratePdfJobQueue job that builds a PDF and saves it to a validated .pdf path.