WaybillCollection
class WaybillCollection (View source)
Main entry point for creating new waybills
Methods
add(Waybill|array $waybill)
Adds a Waybill object to the container
path(string $path)
Setter for $path
array
toArray()
Export the waybills data to array or CSV
mixed
save(string $filename = 'waybills.pdf')
Save the waybills data to PDF
mixed
download(string $filename = 'waybills.pdf')
Download the waybills data to PDF
static WaybillCollection
of(Waybills|null $waybills = null, int $count = 1, Mpdf|null $mpdf = null)
Factory method to create an instance of WaybillCollection
static WaybillCollection
make(Waybills|null $waybills = null, int $count = 1)
Factory method to create an instance without mpdf of WaybillCollection
Details
WaybillCollection
add(Waybill|array $waybill)
Adds a Waybill object to the container
WaybillCollection
path(string $path)
Setter for $path
array
toArray()
Export the waybills data to array or CSV
mixed
save(string $filename = 'waybills.pdf')
Save the waybills data to PDF
mixed
download(string $filename = 'waybills.pdf')
Download the waybills data to PDF
static WaybillCollection
of(Waybills|null $waybills = null, int $count = 1, Mpdf|null $mpdf = null)
Factory method to create an instance of WaybillCollection
static WaybillCollection
make(Waybills|null $waybills = null, int $count = 1)
Factory method to create an instance without mpdf of WaybillCollection