Update AdminPanelProvider.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-02 20:19:39 +03:00
parent 0fe16debb8
commit 6534ac1864

View file

@ -6,6 +6,7 @@ use App\Filament\Pages\Settings\Settings;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Navigation\NavigationGroup;
use Filament\Pages;
use Filament\Panel;
use Filament\PanelProvider;
@ -33,6 +34,12 @@ class AdminPanelProvider extends PanelProvider
->colors([
'primary' => Color::Amber,
])
->navigationGroups([
'Websites' => NavigationGroup::make()->label('Websites'),
'Hosting' => NavigationGroup::make()->label('Hosting'),
'Modules' => NavigationGroup::make()->label('Modules'),
'System' => NavigationGroup::make()->label('System'),
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([