<label id="hd0lb"><video id="hd0lb"></video></label><code id="hd0lb"><rp id="hd0lb"></rp></code>

        <table id="hd0lb"></table>

        1. <pre id="hd0lb"><label id="hd0lb"></label></pre>

          葵花寶典教程,一個自學編程平臺

          葵花寶典教程,一個自學編程平臺

          Laravel DB::table update record

          I have this query

           DB::table('product_options')
                  ->where('product_id', $id)
                  ->where('size', $selected_size)
                  ->update(array('stock' => WHAT TO PUT HERE));

          In the update part where I've put WHAT TO UPDATE, what should I put here to decrease the number by 1?

          DB::table('product_options')
                  ->where('product_id', $id)
                  ->where('size', $selected_size)
                  ->decrement('stock');


          第2條葵花寶典
          == ==

          Copyright www.holyholla.com Rights Reserved葵花寶典教程.鄂icp2022001145號-1

          分享:

          支付寶

          微信

          美女日本一区
          <label id="hd0lb"><video id="hd0lb"></video></label><code id="hd0lb"><rp id="hd0lb"></rp></code>

              <table id="hd0lb"></table>

              1. <pre id="hd0lb"><label id="hd0lb"></label></pre>