jonlynch/response-tile

A package to add responses to the dashboard

v1.2 2022-12-31 14:42 UTC

This package is auto-updated.

Last update: 2024-08-29 05:09:26 UTC


README

Latest Version on Packagist

This tile can be used on the Laravel Dashboard.

Installation

You can install the package via composer:

$ composer require jonlynch/response-tile

Usage

In your dashboard view you use the livewire:response-tile component.

<x-dashboard>
    <livewire:response-tile position="a1:a2"/>
</x-dashboard>

Add the config to the tiles sections of your config/dashboard.php

// in config/dashboard.php

return [
    // ...
    tiles => [
        'response' => [
            'url' => env('RESPONSE_URL'),
        ],
    ]

In app\Console\Kernel.php you should schedule the JonLynch\UkWeatherTile\Commands\FetchMetOfficeDataCommand to run every minute.

// in app\Console\Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command(\JonLynch\UkWeatherTile\Commands\FetchResponseDataCommand::class)->everyMinute();
}

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.