How to put action on toggleColumn?
Is it possible to do like this? I want to use the toggle to block user the case is the
blocked_at = timestamp
blocked_by = unsignedBigInt
3 Replies
Keep in mind that togglecolumn are meant to be used on boolean columns and not dates. Unless you have a boolean column "is_blocked" and changing this on the toggle you can update the record with the timestamp and user id.
Yeah, that's what I thinking... but I just created action instead