This tile displays the status of trains in Belgium.
You can install the package via composer:
composer require spatie/laravel-dashboard-belgian-trains-tile
dashboard config file, you must add this configuration in the
tiles key. The value
belgian_trains should be an array of which each value is array with keys
'tiles' => [
'belgian_trains' => [
'connections' => [
'departure' => 'Antwerpen-Centraal',
'destination' => 'Gent-Dampoort',
'label' => 'Gent',
'refresh_interval_in_seconds' => 60,
app\Console\Kernel.php you should schedule the
Spatie\BelgianTrainsTile\FetchBelgianTrainsCommand to run. You can let in run every minute if you want. You could also run is less frequently if you fast updates on the dashboard aren't that important for this tile.
protected function schedule(Schedule $schedule)
In your dashboard view you use the
<livewire:belgian-trains-tile position="a1:a3" />
Customizing the view
If you want to customize the view used to render this tile, run this command:
php artisan vendor:publish --provider="Spatie\BelgianTrainsTile\BelgianTrainsTileServiceProvider" --tag="dashboard-belgian-trains-tile-views"