Download the PHP package padocia/laravel-nova-pdf without Composer
On this page you can find all versions of the php package padocia/laravel-nova-pdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download padocia/laravel-nova-pdf
More information about padocia/laravel-nova-pdf
Files in padocia/laravel-nova-pdf
Package laravel-nova-pdf
Short Description Generate Pdf from nova resources
License MIT
Homepage https://github.com/padocia/laravel-nova-pdf
Rated 1.00 based on 1 reviews
Informations about the package laravel-nova-pdf
Export nova resources to pdf
✨ Features
-
Export nova resources to PDF. Easily export nova resources to pdf file using blade templates designed by you ! It could be an invoice, a report .... sky is the limit.
-
PDF files are generated from blade templates. Generating pdf has never been so easy, Write your pdf template using blade and export it as pdf.
- Support Tailwind Css to style blade templates. Prefer to use Tailwind css framework to style your blade templates ? wrap your div with
.tailwind-container
and you are ready to go.
Requirements
This package is using Browsershot, The conversion is done behind the scenes by Puppeteer which controls a headless version of Google Chrome.
Installation
You can install the package via composer:
If you don't have the puppeteer
on your project:
You can publish the default blade template :
Usage
Export to pdf nova actions may be generated using :
A new nova action is created under app\nova\actions
, Feel free to customize or change the view
Attach action to a resource
We'll Use the User
resource as an example to add your action to the actions() list.
Customize Browsershot
Override the handleBrowsershotOptions
method in the action class :
Change Filename
Override the filename
method in the action class :
Change Disk
Add new css file
Remove tailwind css
Extend download url expiration time
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected].
Credits
License
The MIT License (MIT). Please see License File for more information.