F
Filament5mo ago
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'; }
})
1 Reply
Ye Thi Ha Htwe
Ye Thi Ha Htwe5mo ago
->label(fn($livewire) => $livewire instanceof CreateUser ? 'Specific' : 'Standard'),
->label(fn($livewire) => $livewire instanceof CreateUser ? 'Specific' : 'Standard'),
Want results from more Discord servers?
Add your server