0
こんにちは私は、増分だけで製品数量を更新する必要がある場合、私のクエリーを修正する必要があります。Laravelクエリービルダーアップデート(インクリメント付き)
DB::table('product_warehouse')
->where('product_id', $product_id)
->where('warehouse_id', $warehouse_id)
->update(['product_qty' => $old_qty+$product_qty]);
第二1のおかげで動作します –