使用Raw,如何返回更新行的集合?
例如:
$updated = DB::table('users')->where('id', 1)->update(['votes' => 123]);
Run Code Online (Sandbox Code Playgroud)
我期望dd($updated)返回集合的更新行,但返回1。
{{$updated->votes}} should return 123
Run Code Online (Sandbox Code Playgroud)