How can i modify a table record column before save (on column input)

I have a toggle column on my table - when i toggle this column like to modify another columns data before the record gets saved to the db. Thanks
3 Replies
LeandroFerreira
LeandroFerreira15mo ago
maybe ->updateStateUsing(..)
jlove1672
jlove167215mo ago
cant find that function on columns. Im just going to settle for an observer on the model
toeknee
toeknee15mo ago
->updateStateUsing() exists on ToggleColumn.