Skip to content

Commit

Permalink
Added NavigationItem and removed unnecessary dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Poseidon281 committed Jul 28, 2024
1 parent 52b8bd3 commit 77eff80
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/Providers/Filament/AppPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use App\Filament\App\Pages;
use Filament\Navigation\NavigationItem;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
Expand Down Expand Up @@ -49,7 +50,16 @@ public function panel(Panel $panel): Panel
->discoverResources(in: app_path('Filament/App/Resources'), for: 'App\\Filament\\App\\Resources')
->discoverPages(in: app_path('Filament/App/Pages'), for: 'App\\Filament\\App\\Pages')
->pages([
Pages\Dashboard::class,
//Pages\Dashboard::class,
])
->navigationItems([
NavigationItem::make('admin')
->label('Admin')
->group('Admin') // TODO find a better name for this
->url('/admin')
->icon('tabler-arrow-forward')
->sort(5)
->visible(fn (): bool => auth()->user()->root_admin),
])
->favicon(config('app.favicon', '/pelican.ico'))
->brandName(config('app.name', 'Pelican'))
Expand Down

0 comments on commit 77eff80

Please sign in to comment.