Return to Snippet

Revision: 80166
at February 13, 2020 06:31 by devquora


Initial Title
How To Use Update Query In Laravel ?

Initial Description
Updating a record in Laravel using Eloquent.

Initial Code
$user=User::where(['id'=>1])->first();
$user->name='abc';
$user->age='22';
$user->save();

Initial Tags
php

Initial Language
PHP

Initial URL
https://www.alltopinterviewquestions.com/laravel-interview-questions/