Using Raw, how to return collection of updated row?
For example:
$updated = DB::table('users')->where('id', 1)->update(['votes' => 123]);
I was expecting dd($updated)
to return updated row of collection but it returned 1.
should return 123
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire