jonlynch / response-tile
A package to add responses to the dashboard
    v1.2
    2022-12-31 14:42 UTC
Requires
- php: >=7.4
 - spatie/laravel-dashboard: >=1.0 <3.0
 - symfony/dom-crawler: ^5.0
 
Requires (Dev)
- phpunit/phpunit: ^9.0
 
README
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.