adspace
Answer Posted / Sana Parveen
To perform an update query, you should use the update() method and provide an array of column names and their corresponding values. Here's an example:n```phpnUser::where('id', $userId)->update(['name' => $newName]);n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers