Skip to content

API reference / Quittio \ Laravel \ Rendering

QueuedDocument

final readonly class in quittio/laravel

Quittio\Laravel\Rendering\QueuedDocument · Source

Pending queued render of a document; dispatching happens on save().

Methods#

MethodDescription
->__construct()
->save()Dispatches the job, which renders the document and stores it on $disk under $path (defaults: quittio.storage.disk and the file name of the document).

__construct()#

public function __construct(
    QuittioManager $manager,
    DocumentData $data,
    RenderOptions $options,
    ?string $connection = null,
    ?string $queue = null,
)
ParameterTypeDescription
$managerQuittioManager
$dataDocumentData
$optionsRenderOptions
$connection?string = null
$queue?string = null

save()#

public function save(?string $disk = null, ?string $path = null): RenderDocument

Dispatches the job, which renders the document and stores it on $disk under $path (defaults: quittio.storage.disk and the file name of the document).

ParameterTypeDescription
$disk?string = null
$path?string = null
Returns
RenderDocument

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.