CheckboxColumn::make('toggle')->label('show home')
->beforeStateUpdated(function ($record, $state) {
// check with db based on a condition and terminate operation
}),
CheckboxColumn::make('toggle')->label('show home')
->beforeStateUpdated(function ($record, $state) {
// check with db based on a condition and terminate operation
}),