Disable data binding of Select Field
I want to save
Statuses
of my table using the Spatie Model Status Package. I have a dropdown on a Form, but I want to handle the data binding myself. At least that is how I think should be the approach?
So I now get an error when saving the form. It looks like it still want to update the status
field in my table, but that doesn't exist.
This is my Select:
This is the error I get:
Anyone has an idea what I'm missing here?5 Replies
I'm not sure but I think the issue comes from the fact that
status
is not a column but is defined as an accessor on the model... Have you tried using a "dummy" column name? Something like this
and
Thanks, that worked!
Hi Daniel, did you just replace 'status' with '_status' and then it worked? I'm still struggling a bit
Yes, I did only changed that.
@Daniel Plomp How do you render the tabel column?