登录注册

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

发表评论

评论列表

匿名

Definitely believe that which you stated. Your favorite justification seemed to be on the internet the easiest thing to be aware of. I say to you, I certainly get irked while people think about worries that they just don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people can take a signal. Will likely be back to get more. Thanks https://www.google.com.bh/url?q=https://bukovets.com/spring/

2021-03-31 19:45:50

匿名

cheap cialis ireland http://www.donmario.nl/modules/babel/redirect.php?newurl=http://cialisle.com - cheap cialis 10mg cialis and lisinopril interactions <a href="http://www.donmario.nl/modules/babel/redirect.php?newurl=http://cialisle.com">donmario.nl</a> cialis 30 day trial voucher

2020-11-16 02:30:08

匿名

what happens when you take a cialis http://www.bigasspictures.net/cgi-bin/atx/out.cgi?s=65&u=http://cialisle.com - bigasspictures.net cialis and tenormin <a href="http://www.bigasspictures.net/cgi-bin/atx/out.cgi?s=65&u=http://cialisle.com">bigasspictures.net</a> cialis brands

2020-11-08 09:07:01

匿名

osu cialis authentique http://sp.moero.net/out.html?id=kisspasp&go=http://www.cialisle.com - sp.moero.net is levitra cheaper than cialis <a href="http://sp.moero.net/out.html?id=kisspasp&go=http://www.cialisle.com">sp.moero.net</a> acquisto cialis 5 mg

2020-10-31 16:15:32

匿名

how to get cialis with no prescription https://www.yiplainview.org/track.php?id=0f0c60fa98ec4991a69cf4ea00b5ac26&url=http://cialisle.com - yiplainview.org how to make cialis work faster <a href="https://www.yiplainview.org/track.php?id=0f0c60fa98ec4991a69cf4ea00b5ac26&url=http://cialisle.com">yiplainview.org</a> can take cialis 10 mg every day

2020-10-24 03:18:29