title: updateOrCreate with increment in laravel
body: <p>What I am trying to do is to update or insert the row in table. In my case, update looks something like this:</p>
  
  <pre><code>\DB::table('inventories')-&gt;where('product_code',$product_code)-&gt;increment('stock_current_quantity',$quantity);
  </code></pre>
  
  <p>I don't want to use if else statement. What I actually want is to integrate increment into following statement so it update as above statement.</p>
  
  <pre><code> \App\Inventory::updateOrCreate(['product_code' =&gt; $product_code], ['stock_current_quantity'=&gt;$quantity]);
  </code></pre>
  
  <p>Thanks in advance!</p>