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
maybe ->updateStateUsing(..)
jlove1672
jlove1672OP2y ago
cant find that function on columns. Im just going to settle for an observer on the model
toeknee
toeknee2y ago
->updateStateUsing() exists on ToggleColumn.
Want results from more Discord servers?
Add your server