From 4b90684e4fe5895b9ee0bd9ab331098ff814c625 Mon Sep 17 00:00:00 2001 From: Maher El Gamil Date: Mon, 15 Jul 2024 12:25:51 +0300 Subject: [PATCH] feat: add `spa` feature to filement panel --- app/Providers/Filament/AdminPanelProvider.php | 3 ++- app/Providers/Filament/CandidatePanelProvider.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 5cf82dd..4a547f2 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -94,6 +94,7 @@ public function panel(Panel $panel): Panel AuthenticationLogResource::class, ]), FilamentSpatieRolesPermissionsPlugin::make(), - ]); + ]) + ->spa(); } } diff --git a/app/Providers/Filament/CandidatePanelProvider.php b/app/Providers/Filament/CandidatePanelProvider.php index 463575c..21a795a 100644 --- a/app/Providers/Filament/CandidatePanelProvider.php +++ b/app/Providers/Filament/CandidatePanelProvider.php @@ -65,6 +65,7 @@ public function panel(Panel $panel): Panel ]) ->authMiddleware([ Authenticate::class, - ]); + ]) + ->spa(); } }