diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index afd625c0..9cfc65b9 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -51,6 +51,9 @@ public function panel(Panel $panel): Panel ]) ->authMiddleware([ Authenticate::class, - ]); + ]) + ->plugins([ + \BezhanSalleh\FilamentShield\FilamentShieldPlugin::make() + ]); } } diff --git a/app/Providers/Filament/AppPanelProvider.php b/app/Providers/Filament/AppPanelProvider.php index fd7e617a..455f9406 100644 --- a/app/Providers/Filament/AppPanelProvider.php +++ b/app/Providers/Filament/AppPanelProvider.php @@ -107,7 +107,10 @@ public function panel(Panel $panel): Panel ->url(fn () => $this->shouldRegisterMenuItem() ? url(EditTeam::getUrl()) : url($panel->getPath())), - ]); + ]) + ->plugins([ + \BezhanSalleh\FilamentShield\FilamentShieldPlugin::make() + ]); } return $panel;