quick eloquent update on click code example
Example: eloquent update row response
DB::table('users')
->where('id', 1)
->update(['votes' => 1]);
DB::table('users')
->where('id', 1)
->update(['votes' => 1]);