© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Rafael Augusto

Detect current action "mode"

Hi guys,

I don't know how to search for this, but is there any way to detect the current action "mode" from a resource?

For example, in the form() function, is there some kind of property that holds the current "mode" for that resource?

I'm not searching for ->hiddenOn() functions, but it's pretty much what it does. Something like $form->getCurrentAction() or so (which would return me 'create', 'edit' or 'view').

Thanks!
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

Detect current mode (dark/light) in custom page
FilamentFFilament / ❓┊help
4mo ago
current location action button
FilamentFFilament / ❓┊help
9mo ago
Get current row record in custom action
FilamentFFilament / ❓┊help
2y ago
Passing the current record to an Action
FilamentFFilament / ❓┊help
3y ago