我必須更新一些記錄,但它無法正常工作。有人知道該怎么辦嗎?$dog = DB::table('dogs') ->update($data) ->where('id', $id);返回響應()->json($dog); })
1 回答

慕神8447489
TA貢獻1780條經驗 獲得超1個贊
where
之前調用update
,例如:
$dog = DB::table('dogs')->where('id', $id)->update($data);
- 1 回答
- 0 關注
- 127 瀏覽
添加回答
舉報
0/150
提交
取消