Laravel increment的时候实现对两个字段同时加1

DB::table(test)->increment('num',1,['vote'=>DB::raw('`vote`+1')]);

 

你可能感兴趣的:(laravel)