登录注册

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

发表评论

评论列表

匿名

Cheers, Quite a lot of content! <a href="https://safeonlinecanadian.com/">canadian drugs</a> <a href="https://kamagra-pills-rx.com/">kamagrakfg kamagra</a> <a href="https://prednisoloneeyedrops.com/">Where To Buy Prednisolone Cvs</a> <a href="https://drug-prednisone.com/">prednisone for dogs</a> <a href="https://viaonlinebuymsn.com/">viagra without doctor prescription usa</a> <a href="https://cheap-valtrex.com/">valaciclovir</a>

2020-01-16 00:01:13

匿名

Fine info. Regards! <a href="https://levitraoua.com/">buy levitra</a>

2020-01-15 23:42:21

匿名

With thanks! Valuable information! <a href="https://viagrabestbuyrx.com/">canada pharmaceuticals online</a> <a href="https://augmentin4u.com/">augmentin 875 mg</a> <a href="https://cephalexin-rxd.com/">keflex</a>

2020-01-15 23:19:50

匿名

Thanks! Ample forum posts. <a href=https://viagrabestbuyrx.com/>top rated canadian pharmacies online</a>

2020-01-15 22:18:00

匿名

Many thanks, I value it. <a href=https://canadianonlinepharmacytrust.com/>canadian pharmacies that ship to us</a> <a href=https://viaonlinebuyntx.com/>aarp approved canadian online pharmacies</a> <a href=https://trustedwebpharmacy.com/>canada pharmacy</a> <a href=https://ciaonlinebuyntx.com/>Qual O Melhor Generico Do Cialis</a>

2020-01-15 19:59:36