📌  相关文章
📜  laravel eloquent increment - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:56.975000             🧑  作者: Mango

代码示例1
Customer::find($customer_id)->increment('loyalty_points');
  
  
// increment by 20 
  Customer::find($customer_id)->increment('loyalty_points',20);