product = Product::find($order->product_id); } protected function handlePayProcess() { $charge = $this->product->price * 100; $given = $this->product->given; $uid = $this->order->uid; User::where('id', $uid)->update( [ 'balance' => DB::raw('balance+' . ($charge + $given)), 'charge_balance' => DB::raw('charge_balance+' . $charge), 'reward_balance' => DB::raw('reward_balance+' . $given), ] ); } }