laravel递增或者递减
作者:admin
时间:2019-11-04 10:59:23
//递增
User::where(['id'=>1])->increment('stock');
//指定增量
User::where(['id'=>1])->increment('stock',2);
//递减
User::where(['id'=>1])->decrement('stock');
//指定减量
User::where(['id'=>1])->decrement('stock',3);
User::where(['id'=>1])->increment('stock');
//指定增量
User::where(['id'=>1])->increment('stock',2);
//递减
User::where(['id'=>1])->decrement('stock');
//指定减量
User::where(['id'=>1])->decrement('stock',3);
评论列表
匿名
Thank you! I like it. <a href="https://viaonlinebuyntx.com/">generic viagra</a>
2020-01-14 21:35:35
匿名
Good advice. Appreciate it! <a href=https://canadianpharmacycom.com/>canadianpharmacy</a> <a href=https://viaonlinebuyntx.com/>canada pharmacies online</a>
2020-01-14 20:00:15
匿名
Seriously tons of excellent knowledge! <a href="https://viagrapycharm.com/">generic viagra without subscription walmart</a>
2020-01-14 19:50:03
匿名
Seriously lots of valuable facts. <a href="https://discount-furosemide.com/">Lasix The Same As Lotensin</a>
2020-01-14 19:26:52
匿名
Amazing a good deal of great tips! <a href="https://weightlosswellbutrin.com/">wellbutrin xl</a>
2020-01-14 18:32:24