mavinoo / laravelBatch

insert batch and update batch in laravel
MIT License
571 stars 118 forks source link

How to update a json column #111

Open tengkusyafiq opened 2 months ago

tengkusyafiq commented 2 months ago

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 🥇