laravel-printing

Introduction

Installation & Setup

{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`

laravel-printing can be installed via composer:

composer require rawilk/laravel-printing:2.0

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/v2/config/printing.php

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

  • 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
  • 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
Upgrade Guide