Increment columns in laravel

Submitted by jack4bean - 2 weeks ago

Increment columns in laravel

DB::table('my_table')
->where('rowID', 1)
->increment('column1', 2)

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks