kristories/nova-qrcode-field

Nova QR code field

v0.0.3 2021-05-21 18:04 UTC

This package is auto-updated.

Last update: 2021-09-21 18:51:58 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 kristories/nova-qrcode-field

Usage

use Kristories\Qrcode\Qrcode;

Basic

Qrcode::make('QR Code', 'url')

Basic

Setting sizes

Qrcode::make('QR Code', 'url')
    ->indexSize(100)
    ->detailSize(500)

With logo

Qrcode::make('QR Code', 'url')
    ->logo('http://source.to/logo.png')

Logo

With background

Qrcode::make('QR Code', 'url')
    ->background('http://source.to/background.png')

Background

With logo & background

Qrcode::make('QR Code', 'url')
    ->logo('http://source.to/logo.png')
    ->background('http://source.to/background.png')

Logo & background

Related

Credits

License

The MIT License (MIT).