laravel-printing
Introduction
Installation & Setup
On this page
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 --tag="printing-config"
The contents of the default configuration file can be found here: https://github.com/rawilk/laravel-printing/blob/main/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
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
Job Names
If you're having an issue sending the name of the job to CUPS, try changing JobPrivateValues default
to JobPrivateValues none
in /etc/cups/cupsd.conf
.