Interface LaravelUi5\Sdk\Export\Contracts\ExportableInterface

A table-shaped dataset that can be streamed to a downloadable file.

This is the SDK's export vocabulary — deliberately in its own terms (filename / headings / count / rows), so no spreadsheet library ever appears in a signature. A writer ({@see ExportWriterInterface}) turns an Exportable into a .csv/.xlsx; the library, if any, lives behind that writer.

The shape is streaming by construction: {@see rows()} returns an iterable (typically a generator over a DB cursor) so a large export never fully materialises server-side. {@see count()} is the cheap pre-flight — the ExportController reads it to enforce the ui5.export.max_rows guard before a single row is streamed.

  • LaravelUi5\Sdk\Export\Contracts\ExportableInterface
    • LaravelUi5\Sdk\Partners\Export\PartnersExportable implements ExportableInterface
Methods