Use another field to store in database
I think I saw something like this in docs, but now I cannot find..
I have key (string) and value (string) in database.. i want to display
key
in label and update value
in DB
Is it possible?
4 Replies
I think there is easy
->something('value')
to change, but not sure
Now I change my method like below, I got what I need.. but still is there any better way
you would pass the key into make()
Yes, in my original question I passed, and it update my 'key' in DB.. but I want to update 'value' field
Your second code example looks like the right way, I can't think of any other way to do it.