登录注册

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

发表评论

评论列表

匿名

flexeril us - <a href="https://rcolchicine.com/">purchase colchicine online</a> inderal uk

2022-06-26 03:04:18

匿名

<a href=http://priligy-dapoxetinebuy.com/>purchase dapoxetine</a> priligy

2022-06-25 17:35:10

匿名

<a href=http://priligy-dapoxetinebuy.com/>buy priligy with no prescription</a> buy priligy no rx

2022-06-25 13:04:38

匿名

<a href=http://priligy-dapoxetinebuy.com/>buy priligy usa</a> buy priligy uk

2022-06-25 08:52:26

匿名

<a href=http://priligy-dapoxetinebuy.com/>buy priligy online</a> buy priligy uk

2022-06-25 04:48:14