custom menu
Hi, I'm trying to create a Custom Nav Menu to display a Resource, but I'm getting a missing parameter: tenant
How can I pass the tenant to the url ?
thanks!
Solution:Jump to solution
try passing Closure to the url method
->url(fn()=>NavigationItem::getUrl('index',['tenant'=>Filament::getTenant()]), shouldOpenInNewTab: false)
...5 Replies
up
Hi @Lara Zeus thanks for your response, however
is returning null ( the method above is being used in AppServiceProvider)
Solution
try passing Closure to the url method
->url(fn()=>NavigationItem::getUrl('index',['tenant'=>Filament::getTenant()]), shouldOpenInNewTab: false)
perfect, thank you!