<tutorialjinni.com/>

Update Query In Laravel

Posted Under: Laravel, PHP, Programming, Snippets on Feb 26, 2020
Code Snippet to Update a record in Laravel using Eloquent.
$user=User::where(['id'=>1])->first();
$user->name='abc';
$user->age='22';
$user->save();


imgae