Updating multiple rows

$values = Value::where('project_id', $id)->update(['data'=>$data]);

Related Posts


Using WhereIn

Using Like

Using orWhere

What is Query Builder?

Using "with" in eloquent query

Getting last inserted id

Selecting last row of a table

Using parameters in find() method

Using local scope in eloquent

Using global scope in eloquent