---
title: "Quittio\\Laravel – API-Referenz"
description: "The public classes in Quittio\\Laravel."
canonical_url: "https://quittio.dev/docs/api/Quittio/Laravel"
locale: de
meta:
  "og:description": "The public classes in Quittio\\Laravel."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "Quittio\\Laravel – API-Referenz"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api)

# Quittio\\Laravel

## quittio/laravel \#

### [Quittio\\Laravel](https://quittio.dev/docs/api/Quittio/Laravel)

- [`QuittioManager`](https://quittio.dev/docs/api/Quittio/Laravel/QuittioManager)Root of the Quittio facade: builds the core from the Laravel configuration, adds events, Blade templates, storage and extension points.
- [`QuittioServiceProvider`](https://quittio.dev/docs/api/Quittio/Laravel/QuittioServiceProvider)Registers the Quittio manager, configuration, views, translations, commands and the local preview route.
- [`Seller`](https://quittio.dev/docs/api/Quittio/Laravel/Seller)Seller from config/quittio.php (when the Managed layer is not in use).

### [Quittio\\Laravel\\Builder](https://quittio.dev/docs/api/Quittio/Laravel/Builder)

- [`ConfigInvoiceDefaults`](https://quittio.dev/docs/api/Quittio/Laravel/Builder/ConfigInvoiceDefaults)The seller, its first bank account and the small business flag of config/quittio.php.
- [`RenderableDocumentBuilder`](https://quittio.dev/docs/api/Quittio/Laravel/Builder/RenderableDocumentBuilder)The document builder of Quittio::quote(), deliveryNote(), paymentReminder() …: renders itself at the end of the chain.
- [`RenderableInvoiceBuilder`](https://quittio.dev/docs/api/Quittio/Laravel/Builder/RenderableInvoiceBuilder)The invoice builder of Quittio::invoice(): renders (or checks) itself at the end of the chain.

### [Quittio\\Laravel\\Contracts](https://quittio.dev/docs/api/Quittio/Laravel/Contracts)

- [`InvoiceDefaults`](https://quittio.dev/docs/api/Quittio/Laravel/Contracts/InvoiceDefaults) interfaceSets the seller and its defaults (bank account, small business flag …) on the builders of Quittio::invoice() and of the document methods (Quittio::quote() …). The default binding takes them from config/quittio.php (ConfigInvoiceDefaults, Seller::apply()); quittio/managed binds the current issuer.
- [`ManagedInstaller`](https://quittio.dev/docs/api/Quittio/Laravel/Contracts/ManagedInstaller) interfaceImplemented by quittio/managed: runs "quittio:install --managed" (migrations, first issuer).
- [`ManagedInvoiceRenderer`](https://quittio.dev/docs/api/Quittio/Laravel/Contracts/ManagedInvoiceRenderer) interfaceImplemented by quittio/managed: renders a stored invoice again ("quittio:render {invoice}").

### [Quittio\\Laravel\\Events](https://quittio.dev/docs/api/Quittio/Laravel/Events)

- [`DocumentRendered`](https://quittio.dev/docs/api/Quittio/Laravel/Events/DocumentRendered)Dispatched after a document (quote, reminder, …) was rendered.
- [`DocumentRendering`](https://quittio.dev/docs/api/Quittio/Laravel/Events/DocumentRendering)Dispatched before a quote, order confirmation, delivery note, proforma invoice, payment reminder or account statement is calculated and rendered.
- [`InvoiceRendered`](https://quittio.dev/docs/api/Quittio/Laravel/Events/InvoiceRendered)Dispatched after all requested formats were produced.
- [`InvoiceRendering`](https://quittio.dev/docs/api/Quittio/Laravel/Events/InvoiceRendering)Dispatched before an invoice is calculated, validated and rendered.
- [`InvoiceValidated`](https://quittio.dev/docs/api/Quittio/Laravel/Events/InvoiceValidated)Dispatched after a render run whose validation did not block it, before InvoiceRendered. $result is the validation of the main (first) format: in mode "error" it has no errors (warnings may be present unless validation.block\_on\_warnings), in mode "warn" it may contain errors, so check $result->isValid(). Not dispatched in mode "off" (nothing was validated) and not when validation blocked the run (see InvoiceValidationFailed).
- [`InvoiceValidationFailed`](https://quittio.dev/docs/api/Quittio/Laravel/Events/InvoiceValidationFailed)Dispatched when validation blocked rendering.
- [`MandatoryFieldMissing`](https://quittio.dev/docs/api/Quittio/Laravel/Events/MandatoryFieldMissing)Dispatched when a template omitted mandatory values.
- [`QueuedDocumentFailed`](https://quittio.dev/docs/api/Quittio/Laravel/Events/QueuedDocumentFailed)Dispatched when a queued RenderDocument job failed for good: after its last attempt, or at once for errors that another attempt cannot fix. $job->data() returns the document.
- [`QueuedDocumentStored`](https://quittio.dev/docs/api/Quittio/Laravel/Events/QueuedDocumentStored)Dispatched by a queued RenderDocument job after it stored the document. DocumentRendered precedes it.
- [`QueuedInvoiceFailed`](https://quittio.dev/docs/api/Quittio/Laravel/Events/QueuedInvoiceFailed)Dispatched when a queued RenderInvoice job failed for good: after its last attempt, or at once for errors that another attempt cannot fix (validation, invalid data, configuration). $job->data() returns the invoice.
- [`QueuedInvoiceStored`](https://quittio.dev/docs/api/Quittio/Laravel/Events/QueuedInvoiceStored)Dispatched by a queued RenderInvoice job after it stored the main output, e.g. to link the stored file to an order. InvoiceRendered precedes it.

### [Quittio\\Laravel\\Facades](https://quittio.dev/docs/api/Quittio/Laravel/Facades)

- [`Quittio`](https://quittio.dev/docs/api/Quittio/Laravel/Facades/Quittio)

### [Quittio\\Laravel\\Jobs](https://quittio.dev/docs/api/Quittio/Laravel/Jobs)

- [`RenderDocument`](https://quittio.dev/docs/api/Quittio/Laravel/Jobs/RenderDocument)Renders a quote, delivery note, reminder or other document in the queue and stores it on a disk. The document travels as versioned JSON snapshot (DocumentData::toSnapshot(), brought up to date by quittio.snapshots.document\_upcasters), the render options as versioned JSON. Errors that another attempt cannot fix fail the job at once; others are retried.
- [`RenderInvoice`](https://quittio.dev/docs/api/Quittio/Laravel/Jobs/RenderInvoice)Renders an invoice in the queue and stores the main output on a disk.

### [Quittio\\Laravel\\Rendering](https://quittio.dev/docs/api/Quittio/Laravel/Rendering)

- [`DeliversFile`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/DeliversFile) traitDownload, inline display, mail attachment and storage for rendered files.
- [`PendingDocument`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/PendingDocument)Fluent render call for documents: Quittio::document($quote)->locale('de')->render().
- [`PendingInvoice`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/PendingInvoice)Fluent render call: Quittio::make($order)->profile('en16931')->format('zugferd')->locale('de')->render().
- [`QueuedDocument`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/QueuedDocument)Pending queued render of a document; dispatching happens on save().
- [`QueuedInvoice`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/QueuedInvoice)Pending queued render; dispatching happens on save().
- [`RenderedDocument`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/RenderedDocument)Rendered quote, delivery note, reminder or statement for Laravel.
- [`RenderedInvoice`](https://quittio.dev/docs/api/Quittio/Laravel/Rendering/RenderedInvoice)Rendered invoice for Laravel: usable as mail attachment and as HTTP response, storable on any filesystem disk.

### [Quittio\\Laravel\\Support](https://quittio.dev/docs/api/Quittio/Laravel/Support)

- [`Settings`](https://quittio.dev/docs/api/Quittio/Laravel/Support/Settings)Typed read access to a configuration array ("quittio" by default) with dot notation.

### [Quittio\\Laravel\\Templates](https://quittio.dev/docs/api/Quittio/Laravel/Templates)

- [`BladeTemplateEngine`](https://quittio.dev/docs/api/Quittio/Laravel/Templates/BladeTemplateEngine)Renders Blade views with the invoice view model as $invoice. The name "default" maps to the configured template. Template names may come from invoice data, so only these views can be selected: the configured template (quittio.pdf.template), the shipped views under "quittio::templates." (no partials) and the views of quittio.pdf.templates ("invoices.\*" or "namespace::\*" allows every view below a prefix). Names that are no Blade view fall back to the plain PHP templates, which resolve names inside their template directories only (never file paths).

### [Quittio\\Laravel\\Testing](https://quittio.dev/docs/api/Quittio/Laravel/Testing)

- [`EInvoiceAssertions`](https://quittio.dev/docs/api/Quittio/Laravel/Testing/EInvoiceAssertions)The assertions of {@see InteractsWithQuittio} outside a test case class, e.g. in Pest helper functions: (new EInvoiceAssertions)->assertValidEInvoice($pdf, 'xrechnung').
- [`InteractsWithQuittio`](https://quittio.dev/docs/api/Quittio/Laravel/Testing/InteractsWithQuittio) traitAssertions for feature tests.
- [`QuittioFake`](https://quittio.dev/docs/api/Quittio/Laravel/Testing/QuittioFake)Calculates invoices and chooses formats and profiles like a real run (requested formats, defaults.format, the automatic choice, profile keys and objects, defaults.profile), but skips validation, XML, template and PDF. Records every render call and every queued render, and dispatches the events of a real run (InvoiceRendering, InvoiceValidated with an empty result unless validation is off, InvoiceRendered).

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Laravel#webpage","@type":"WebPage","description":"The public classes in Quittio\\Laravel.","name":"Quittio\\Laravel – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Laravel","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Laravel"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```