boitebeet / nova-qrcode-field
Nova 二维码字段
1.0.0
2020-10-15 18:06 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-09-16 04:05:13 UTC
README
一个用于生成二维码的Laravel Nova字段。
安装
您可以使用composer将此Nova字段安装到使用Nova的Laravel应用程序中
composer require boitebeet/nova-qrcode-field
使用方法
基本
Qrcode::make('QR Code') ->text('https://laravel.net.cn')
设置大小
Qrcode::make('QR Code') ->text('https://laravel.net.cn') ->indexSize(100) ->detailSize(500)
带logo
Qrcode::make('QR Code') ->text('https://laravel.net.cn') ->logo('http://source.to/logo.png')
带背景
Qrcode::make('QR Code') ->text('https://laravel.net.cn') ->background('http://source.to/background.png')
带logo和背景
Qrcode::make('QR Code') ->text('https://laravel.net.cn') ->logo('http://source.to/logo.png') ->background('http://source.to/background.png')
相关
致谢
许可证
MIT许可证(MIT)。