Skip to content

Documents

Option Default Purpose
$documentTemplates [] templates of documents (receipts and the like)
$documentBrand 'Anvil' name in the header and footer of documents
$documentLogo null logo in the header: a PNG or JPEG file (at most 500 KB)
public array $documentTemplates = [\App\Documents\IssueReceipt::class, \App\Documents\ReturnReceipt::class];
public string $documentBrand = 'Muster AG';
public ?string $documentLogo = ROOTPATH . 'public/img/logo.png';
  • Templates are registered explicitly; their keys must be unique. Keep a template registered as long as documents of it are kept.
  • The logo is read from the file system and embedded into the PDF; a file that is missing, too large or of another type is ignored and the name is shown.

See Documents and signatures.