diff --git a/app/Filament/Pages/Dashboard.php b/app/Filament/Pages/Dashboard.php new file mode 100644 index 000000000..e7601168f --- /dev/null +++ b/app/Filament/Pages/Dashboard.php @@ -0,0 +1,32 @@ +label('Queue Speedtest') + ->action('queueSpeedtest'), + ]; + } + + public function queueSpeedtest() + { + ExecSpeedtest::dispatch(); + + Notification::make() + ->title('Speedtest added to the queue') + ->success() + ->send(); + } +} diff --git a/config/filament.php b/config/filament.php index 8a64ea931..40c4a1b44 100644 --- a/config/filament.php +++ b/config/filament.php @@ -105,7 +105,7 @@ 'namespace' => 'App\\Filament\\Pages', 'path' => app_path('Filament/Pages'), 'register' => [ - Pages\Dashboard::class, + // Pages\Dashboard::class, ], ], diff --git a/resources/views/filament/pages/dashboard.blade.php b/resources/views/filament/pages/dashboard.blade.php new file mode 100644 index 000000000..37ebb09e0 --- /dev/null +++ b/resources/views/filament/pages/dashboard.blade.php @@ -0,0 +1,5 @@ + +

+ 👋 Welcome to Speedtest Tracker, here you can track your internet speed using Ookla's Speedtest service. Keep in mind that this is still work in progress so make sure to check out the documentation and follow along on GitHub for updates. +

+