© 2026 Hedgehog Software, LLC

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

Globally Accessing Current Resource

Hey. Is there a way I can access the current page/resource from inside a middleware? I essentially want to be able to do something like
Filament\Facades\Filament::getCurrentResource()
Filament\Facades\Filament::getCurrentResource()
and have it return the Filament resource for the page I'm accessing, but can't find a method which achieves this. Thanks in advance.
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

Accessing Model /ResourceIn Widget
FilamentFFilament / ❓┊help
2y ago
Accessing the current tenant
FilamentFFilament / ❓┊help
3y ago
Accessing resource from resource manager link
FilamentFFilament / ❓┊help
2y ago
Refresh current resource page
FilamentFFilament / ❓┊help
2y ago