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"
1 Reply
Solution
You can use
->disabled(fn($record):bool => $record->state === 'On')