update using id eloquent 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]);