Custom Table Action

Hi team I am adding a custom table action that can active and de-active a community this is my code but it seems not to work as expected
Action::make("de-activate")
->action(
fn (Community $record) =>
$record->update([
'is_active' => true
])
)

->color('danger')
Was this page helpful?