solitweb/laravel-dashboard-qr-code-tile

A QR code tile for the Laravel Dashboard

1.0.1 2021-02-23 13:56 UTC

This package is auto-updated.

Last update: 2024-11-23 22:01:27 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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.