【发布时间】:2019-07-18 17:12:26
【问题描述】:
我想做的相当于使用 Eloquent 进行的咨询,但我不知道该怎么做。
update promociones set veces_cajeadas=veces_cajeadas + 1 where id = 7
What I need is that when a specific promotion id is chosen, add 1 to a field in the table.表格的模型是 Promotions。
【问题讨论】:
标签: php mysql laravel orm eloquent