PanelBuilder wildcard NavigationItem? Is it possible?

I'm having doubts if doing something like Filament::getTenant()->id inside of panel builder is acceptable. Any advice appreciated, here's what I tried:
->navigationItems([
NavigationItem::make('Cool Page')
->url(function ($tenantID) {
return "/tenant/{$tenantID}";
}, shouldOpenInNewTab: true)
->icon('heroicon-s-globe-asia-australia')
])
->navigationItems([
NavigationItem::make('Cool Page')
->url(function ($tenantID) {
return "/tenant/{$tenantID}";
}, shouldOpenInNewTab: true)
->icon('heroicon-s-globe-asia-australia')
])
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server