File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
resources/views/filament/pages Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1212use Filament \Notifications \Notification ;
1313use Filament \Pages \Actions \Action ;
1414use Filament \Pages \Dashboard as BasePage ;
15+ use Illuminate \Contracts \View \View ;
1516
1617class Dashboard extends BasePage
1718{
@@ -21,7 +22,7 @@ class Dashboard extends BasePage
2122
2223 protected static string $ view = 'filament.pages.dashboard ' ;
2324
24- public function mount ()
25+ public function render (): View
2526 {
2627 $ this ->resultsCount = Result::count ();
2728
@@ -36,6 +37,8 @@ public function mount()
3637 ->format ($ settings ->time_format );
3738 }
3839
40+ return view (static ::$ view , $ this ->getViewData ())
41+ ->layout (static ::$ layout , $ this ->getLayoutData ());
3942 }
4043
4144 protected function getActions (): array
Original file line number Diff line number Diff line change 11<x-filament::page >
2-
3- <div >
4- <p class =" text-center text-sm" >Last speedtest run at: <strong >{{ $lastResult } } </strong ></p >
5- </div >
6-
2+ <div wire:poll.5000ms >
3+ <p class =" text-center text-sm" >Last speedtest run at: <strong >{{ $lastResult } } </strong ></p >
4+ </div >
75</x-filament::page >
You can’t perform that action at this time.
0 commit comments