Laravel database entry DB :: table
1 answer
Use the method decrement
. http://laravel.com/docs/4.2/queries#updates
DB::table('product_options')
->where('product_id', $id)
->where('size', $selected_size)
->decrement('stock');
+6
source to share