F
Filament4mo ago
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() 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.
1 Reply
Owain
Owain4mo ago
Doesn't have to be a middleware. I also have a custom Livewire component on the page that I can pull it at.
Want results from more Discord servers?
Add your server