Api

Printer

{note} You're browsing the documentation for an old version of laravel-printing. Consider upgrading your project to v3. Check your version with the following command:

composer show rawilk/laravel-printing

Rawilk\Printing\Contracts\Printer

/**
 * Returns the printer's id.
 *
 * @return int|string
 */
public function id();
/**
 * Returns the printer's name.
 *
 * @return string|null
 */
public function name(): ?string;
/**
 * Returns the printer's description.
 *
 * @return string|null
 */
public function description(): ?string;
/**
 * Returns the printer's capabilities.
 *
 * @return array
 */
public function capabilities(): array;
/**
 * Returns the printer's available trays.
 *
 * @return array
 */
public function trays(): array;
/**
 * Returns the printer's current status.
 *
 * @return string
 */
public function status(): string;
/**
 * Determine if the printer is currently "online".
 *
 * @return bool
 */
public function isOnline(): bool;
/**
 * 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.

/**
 * 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
Multiple Drivers
Caught a mistake? Suggest an edit on GitHub