solitweb / laravel-dashboard-qr-code-tile
A QR code tile for the Laravel Dashboard
Requires
- php: ^7.4|^8.0
- spatie/laravel-dashboard: ^2.0
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-11-23 22:01:27 UTC
README
This tile displays a QR code.
This tile can be used on the Laravel Dashboard.
Installation
You can install the package via composer:
composer require solitweb/laravel-dashboard-qr-code-tile
In the dashboard config file, you must add this configuration in the tiles key.
// in config/dashboard.php return [ // ... 'tiles' => [ 'qr_code' => [ 'codes' => [ env('QR_CODE_WIFI'), ], ], ], ];
Usage
In your dashboard view you use the livewire:qr-code-tile
component.
<x-dashboard> <livewire:qr-code-tile position="a1" title="Join our WiFi" :code="config('dashboard.tiles.qr_code.codes.0')" /> </x-dashboard>
Customizing the view
If you want to customize the view used to render this tile, run this command:
php artisan vendor:publish --provider="Solitweb\QRCodeTile\QRCodeTileServiceProvider" --tag="dashboard-qr-code-tile-views"
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 stijn@solitweb.be instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.