laravelBatch icon indicating copy to clipboard operation
laravelBatch copied to clipboard

How to update a json column

Open tengkusyafiq opened this issue 1 year ago • 0 comments
trafficstars

Hi, thanks for the awesome library!

I tried to batch()->update() multiple rows with a json column with value of a list of integers like so: [1, 2, 3]

However, it is messing with the increment/decrement logic.

First value in Increment/Decrement array needs to be a string and a math operator (+, -, *, /, %)

Is it possible to update a json column? If yes, can you give us an example?

Thank you 🥇

tengkusyafiq avatar Aug 28 '24 04:08 tengkusyafiq