devtical / nova-qrcode-field
Nova QR code field
Fund package maintenance!
Kristories
Installs: 19 250
Dependents: 2
Suggesters: 0
Security: 0
Stars: 38
Watchers: 2
Forks: 14
Open Issues: 1
Requires
- php: ^8.0
- laravel/nova: ^4.0
Requires (Dev)
- laravel/pint: ^1.13
This package is auto-updated.
Last update: 2024-04-25 12:07:01 UTC
README
A Laravel Nova field to generate QR Code.
Installation
You can install the Nova field in to a Laravel app that uses Nova via composer :
composer require devtical/nova-qrcode-field
Usage
use Devtical\Qrcode\Qrcode;
Basic
Qrcode::make('QR Code', 'field')
Setting sizes
Qrcode::make('QR Code', 'field') ->indexSize(100) ->detailSize(500)
With logo
Qrcode::make('QR Code', 'field') ->logo('http://source.to/logo.png')
With background
Qrcode::make('QR Code', 'field') ->background('http://source.to/background.png')
With logo & background
Qrcode::make('QR Code', 'field') ->logo('http://source.to/logo.png') ->background('http://source.to/background.png')
Related
Credits
License
The MIT License (MIT).