© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
StanProg

Access to route() in AppPanelProvider::panel()

Do we have access to routes in the
panel()
panel()
method before we do a call to
$panel
$panel
?
Solution
Here is with closure. It works fine.
MenuItem::make()
    ->url(function() {
        return Account::getUrl();
    })
MenuItem::make()
    ->url(function() {
        return Account::getUrl();
    })
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

Middleware in Panel Route
FilamentFFilament / ❓┊help
3y ago
Access to panel
FilamentFFilament / ❓┊help
3y ago
new panel route
FilamentFFilament / ❓┊help
3y ago
I cannot access route inside panel service provider
FilamentFFilament / ❓┊help
3y ago