© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Liam

Get tenant on a custom NavigationItem

Hello,

I want to add a custom NavigationItem where I need to redirect users to a page in my app outside of Filament, I want to include the tenant id they are currently on with:

NavigationItem::make(__('Abonnementen'))
                    ->url(request()->get('tenant'))
                    ->icon('heroicon-o-credit-card'),
NavigationItem::make(__('Abonnementen'))
                    ->url(request()->get('tenant'))
                    ->icon('heroicon-o-credit-card'),


Filament::getTenant() doesn't work and request()->get('tenant'), doesn't work as well.
Solution
I guess you need to use a Closure for url then
->url(fn () => ...)
->url(fn () => ...)
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

[Missing parameter: tenant] On custom tenant page ?
FilamentFFilament / ❓┊help
17mo ago
Custom tenant URL
FilamentFFilament / ❓┊help
2y ago
navigationitem isActiveWhen()
FilamentFFilament / ❓┊help
17mo ago
Unable to hide childItems in custom NavigationItem
FilamentFFilament / ❓┊help
16mo ago