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() 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.
Was this page helpful?