//just run this command in your project directory
composer update
php composer.phar update
Model::where('id',1)->update(['name'=>'updated name']);
//or
$data = Model::findOrFail($id); //primary id
$data->name = $request->input('updated name');
$data->save();
use AppModelsFlight;
$flight = Flight::find(1);
$flight->name = 'Paris to London';
$flight->save();
User::query()->whereId($user->id)
->update([
'column' => 'value',
'n' => 'n',
]);
$flight = AppModelsFlight::find(1);
$flight->name = 'New Flight Name';
$flight->save();
const CREATED_AT = 'creation_date';
const UPDATED_AT = 'last_update';
<form action="{{route('blog.update',$blog[0]->id)}}" method="post">
@csrf
@method('PUT')
<textarea name="txtTitle" >
{{$blog[0]->title}}
</textarea>
<input type="submit" value="Update" />
</form>