© 2026 Hedgehog Software, LLC

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

Get Resource Page Type

Is it possible to get the current resource page type as parameter for a FormInput Field like the label for example:
->label(function(ResourcePage $page){
   if($page == 'create'){ return 'Specific'; } else { return 'Standard'; }
})
->label(function(ResourcePage $page){
   if($page == 'create'){ return 'Specific'; } else { return 'Standard'; }
})
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

get resource page name
FilamentFFilament / ❓┊help
13mo ago
How to get page reference from resource
FilamentFFilament / ❓┊help
2y ago
page outside resource
FilamentFFilament / ❓┊help
3y ago
custom page(non resource page)
FilamentFFilament / ❓┊help
2y ago