{note} You're browsing the documentation for an old version of laravel-printing. Consider upgrading your project to v2.

Printer

Rawilk\Printing\Contracts\Printer

id

/**
 * Returns the printer's id.
 *
 * @return int|string
 */
public function id();

name

/**
 * Returns the printer's name.
 *
 * @return string|null
 */
public function name(): ?string;

description

/**
 * Returns the printer's description.
 *
 * @return string|null
 */
public function description(): ?string;

capabilities

/**
 * Returns the printer's capabilities.
 *
 * @return array
 */
public function capabilities(): array;

trays

/**
 * Returns the printer's available trays.
 *
 * @return array
 */
public function trays(): array;

status

/**
 * Returns the printer's current status.
 *
 * @return string
 */
public function status(): string;

isOnline

/**
 * Determine if the printer is currently "online".
 *
 * @return bool
 */
public function isOnline(): bool;

jobs

/**
 * Returns the jobs for a printer.
 *
 * @return \Illuminate\Support\Collection
 */
public function jobs(): Collection;

Note: This feature is not yet implemented for the PrintNode driver.

toArray

/**
 * Returns an array representation of the printer.
 * This method is also called if casting the printer to an array ((array) $printer)
 *
 * @return array
 */
public function toArray(): array;
← Previous Topic

Multiple Drivers

Next Topic →

PrintTask

Caught a mistake? Suggest an edit on Github