update and return row laravel code example
Example 1: laravel update return updated row, laravel update return
$user = tap($user)->update(['votes' => 123]);
Example 2: eloquent update row response
DB::table('users')
->where('id', 1)
->update(['votes' => 1]);