登录注册

18250178511

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);

发表评论

评论列表

匿名

Superb content, Cheers! <a href="https://fluoxetine-hydrochloride.com/">fluoxetine</a> <a href="https://buyflomaxonline.com/">Flomax Hose</a> <a href="https://neurontinmeds.com/">neurontin generic</a>

2020-01-16 05:27:01

匿名

Seriously a good deal of awesome facts. <a href="https://buy-celebrex-anti-pain.com/">celebrex 200 mg</a>

2020-01-16 05:03:06

匿名

Wonderful info. Appreciate it. <a href=https://safeonlinecanadian.com/>canada online pharmacies</a> <a href=https://buymodafinilntx.com/>armodafinil vs modafinil</a> <a href=https://viaonlinebuymsn.com/>generic viagra without subscription</a> <a href=https://canadianpharmacyopen.com/>canada drug</a> <a href=https://viaonlinebuyntx.com/>top rated online canadian pharmacies</a> <a href=https://canadianpharmacycom.com/>aarp approved canadian online pharmacies</a> <a href=https://canadianonlinepharmacytrust.com/>northwest pharmacy</a>

2020-01-16 02:04:55

匿名

You actually expressed this well. <a href="https://viagradocker.com/">real life viagra demonstration</a>

2020-01-16 01:35:20

匿名

You actually revealed it exceptionally well! <a href="https://valsartanhydrochlorothiazide.com/">hydrochlorot</a>

2020-01-16 00:28:21