Reputation: 153
I would like to change value in table dynamically i mean if value in column is 0 set 1 and reverse when 1 set 0. I noticed that when i use mysql query:
UPDATE table set column = ABS(column-1)
its working but how to implement that into Laravel eloquent (update)?
Upvotes: 0
Views: 47