DB::table('users')->increment('votes');
DB::table('users')->increment('votes', 5);
DB::table('users')->decrement('votes');
DB::table('users')->decrement('votes', 5);
$customer = Customer::find($customer_id);
$loyalty_points = $customer->loyalty_points + 1;
$customer->update(['loyalty_points' => $loyalty_points]);
or
Customer::find($customer_id)->increment('loyalty_points');
// Instead of this:
$article = Article::find($article_id);
$article->read_count++;
$article->save();
//You can do this:
$article = Article::find($article_id);
$article->increment('read_count');
//Also these will work:
Article::find($article_id)->increment('read_count');
Article::find($article_id)->increment('read_count', 10); // +10
Product::find($produce_id)->decrement('stock'); // -1