Installation & Setup

Installation

laravel-printing can be installed via composer:

composer require rawilk/laravel-printing

Publishing the config file

You may publish the config file like this:

php artisan vendor:publish --provider="Rawilk\Printing\PrintingServiceProvider" --tag="config"

The contents of the default configuration file can be found here: https://github.com/rawilk/laravel-printing/blob/master/config/printing.php

Setting up a print driver

To print with laravel printing, you must set up a supported print driver.

PrintNode

  • You must sign up for an account at PrintNode. You can sign up here: https://app.printnode.com/app/login/register
  • Review the requirements for the PrintNode driver
  • Enter your api key in your .env file: PRINT_NODE_API_KEY=your-api-key
  • In the terminal, run: composer require printnode/printnode-php

CUPS

  • Review the requirements for the CUPS driver
  • If using a remote server, enter your remote server credentials in the .env file (see config)
  • In the terminal, run: composer require smalot/cups-ipp
← Previous Topic

Upgrade Guide

Next Topic →

Questions & Issues

Caught a mistake? Suggest an edit on Github