📜  laravel updateorcreate multiple records - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:39.792000             🧑  作者: Mango

代码示例2
// in a single line here
$values = Cart::where('session_id', $id)->update(['data'=>$data]);