update row php eloquent dtae 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]);