Laravel · Integration
Laravel integration
At a glance
Section titled “At a glance”Use nextpdf/laravel to resolve fresh NextPDF documents from the service container, return Portable Document Format (PDF) responses from controllers, and queue document generation.
Section map
Section titled “Section map”| Page | Use it for |
|---|---|
| Overview | Package scope and supported workflows. |
| Install | Composer installation and Laravel registration. |
| Quickstart | Your first controller response. |
| Configuration | config/nextpdf.php keys, environment variables, and defaults. |
| API | Facade methods, response helpers, and the queue job constructor. |
| Developer guide | Container lifecycle, worker safety, queues, and extension points. |
| Production usage | Deployment and operations patterns. |
| Security and operations | Headers, paths, secrets, and queue safety. |
| Troubleshooting | Common failures and diagnostic steps. |
Primary APIs
Section titled “Primary APIs”| Symbol | Role |
|---|---|
NextPDF\Laravel\Facades\Pdf | Static facade for the PdfDocumentInterface container binding. |
NextPDF\Laravel\Http\PdfResponse | Inline, download, streamed inline, and streamed download responses. |
NextPDF\Laravel\Jobs\GeneratePdfJob | Queue job that builds a PDF and saves it to a validated .pdf path. |