laravel update 并且 increment
laravel update 并且 increment,用raw实现
app('db')->table('orders')->where('order_id', $orderId) ->update([ 'status' =>1, 'count' => app('db')->raw('count+ 1'), ]);
laravel update 并且 increment,用raw实现
app('db')->table('orders')->where('order_id', $orderId) ->update([ 'status' =>1, 'count' => app('db')->raw('count+ 1'), ]);