PHP code example of kristories / nova-qrcode-field

1. Go to this page and download the library: Download kristories/nova-qrcode-field library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kristories / nova-qrcode-field example snippets


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

Qrcode::make('QR Code', 'field')
    ->indexSize(100)     // QR size for index view
    ->detailSize(500)    // QR size for detail view

Qrcode::make('QR Code', 'field')
    ->margin(10)

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

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

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

Qrcode::make('QR Code', 'code')
    ->hideWhen(function ($resource) {
        return $resource->status === 0; // Hide if status is inactive
    });