Update multiple rows of database in Laravel
Here is an easy way to do it.
$values = Value::where('project_id', $id)->update(['data'=>$data]);
I found it from this link
Hope it helps.
Here is an easy way to do it.
$values = Value::where('project_id', $id)->update(['data'=>$data]);
I found it from this link
Hope it helps.