Update multiple rows of database in Laravel
问题 I want a code for update multiple rows of database, somthing like this: UPDATE values SET data='{"options":["male","female"],"default":"male"}' where project_id=1 and id=1; UPDATE values SET data='{"options":["male","female"],"default":"male"}' where project_id=1 and id=2; UPDATE values SET data='{"options":["male","female"],"default":"male"}' where project_id=1 and id=3; After some hours i could get result with something like this in laravel framework: $values = Value::where('project_id',