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#
| Method | Description |
|---|---|
->__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,
)| Parameter | Type | Description |
|---|---|---|
$manager | QuittioManager | |
$data | DocumentData | |
$options | RenderOptions | |
$connection | ?string = null | |
$queue | ?string = null |
save()#
public function save(?string $disk = null, ?string $path = null): RenderDocumentDispatches the job, which renders the document and stores it on $disk under $path (defaults: quittio.storage.disk and the file name of the document).
| Parameter | Type | Description |
|---|---|---|
$disk | ?string = null | |
$path | ?string = null |
- Returns
RenderDocument