This is the documentation for
v1 but the latest version is
v3
.
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show spatie/laravel-dashboard
This tile displays sites that Oh Dear detects as down.
<img src="https://docs.spatie.be/laravel-dashboard/v1/images/oh-dear.png" width=300" />
##Installation
You can install the package via composer:
composer require spatie/laravel-dashboard-oh-dear-uptime-tile
This package listens for events coming from Oh Dear using the ohdearapp/laravel-ohdear-webhooks
package. Before you can use this tile, you must set up laravel-ohdear-webhooks
. You'll find instructions in this section in the Oh Dear docs.
In the dashboard
config file, you must add this configuration in the tiles
key.
// in config/dashboard.php
return [
// ...
'tiles' => [
'oh_dear_uptime' => [
'refresh_interval_in_seconds' => 5,
],
];
##Usage
In your dashboard view, you use the livewire:oh-dear-uptime-tile
component.
<x-dashboard>
<livewire:oh-dear-uptime-tile position="a1:a3" />
</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="Spatie\OhDearUptimeTile\OhDearUptimeTileServiceProvider" --tag="dashboard-oh-dear-uptime-tile-views"