/ Published in: PHP
Updating a record in Laravel using Eloquent.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$user=User::where(['id'=>1])->first(); $user->name='abc'; $user->age='22'; $user->save();
URL: https://www.alltopinterviewquestions.com/laravel-interview-questions/