Conditional Actions

Is it possible to create actions on a table that are only shown in certain conditions? I'm not talking about authentication based conditions, but rather actions like "Turn Off" that are only visible when the record's state is "On"
Solution:
You can use ->disabled(fn($record):bool => $record->state === 'On')
Jump to solution
1 Reply
Solution
LeandroFerreira
LeandroFerreira16mo ago
You can use ->disabled(fn($record):bool => $record->state === 'On')
Want results from more Discord servers?
Add your server