F
Filament13mo ago
Chanda

Adding Custom Page in Navigation

I have created a custom page which I have added in config as:
public function panel(Panel $panel): Panel
{
return $panel
->navigationItems([
NavigationItem::make('Active Loans')
->url('active')
->icon('fas-coins')
->isActiveWhen(fn (): bool => request()->routeIs('filament.admin.resources.loans.active')),

])
//other lines of codes here
public function panel(Panel $panel): Panel
{
return $panel
->navigationItems([
NavigationItem::make('Active Loans')
->url('active')
->icon('fas-coins')
->isActiveWhen(fn (): bool => request()->routeIs('filament.admin.resources.loans.active')),

])
//other lines of codes here
What I want is to add this now to the NavigationGroup. Its appearing on the sidebar but I want it to appear under NavigationGroup. I have tried to add the navigation group inside the custom page itself as: protected static ?string $navigationGroup = 'Loans'; but its not working
2 Replies
Chanda
ChandaOP13mo ago
@Tieme Thanks worked!!! Missed out that in the Docs😄
Want results from more Discord servers?
Add your server