登录注册

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

发表评论

评论列表

匿名

<a href=http://canadianxldrugstore.online/>cilas canada pharmacy</a>

2022-08-07 14:18:48

匿名

<a href=http://canadianxldrugstore.online/>canadian online drug stores</a>

2022-08-07 09:34:32

匿名

<a href=https://molnupiravir.site/>can you buy Molnupiravir elixir over the counter</a>

2022-08-06 18:45:26

匿名

purchase diflucan sale <a href="https://diflucansx.com/">fluconazole 100mg canada</a> cost viagra

2022-08-06 15:25:49

匿名

<a href=https://molnupiravir.site/>where can i buy Molnupiravir 200mg</a>

2022-08-06 14:21:31