How to use update query in laravel?
Answer / 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 |
How to install laravel via composer?
What are the available router methods?
Is laravel object oriented?
How to configure a mail-in laravel?
What do you know about facades in laravel? Explain.
Which template engine is used by laravel?
What is the directory structure of laravel 5.6?
What do you know about closures in laravel?
What are the software’s included in laravel homestead?
What is localization?
In laravel, what is fillable attribute in a model?
What are the advanced features of laravel 6.0?