$user = new User; $user->name = 'John Doe'; $user->email = 'johndoe@example.com'; $user->save();
$user = User::find(1); $user->email = 'newemail@example.com'; $user->save();In this example, an existing `User` model is found using the `find()` method, the email property is updated, and then the `save()` method is called to save the changes to the database. This functionality is part of the Illuminate Database package library, which is a part of the Laravel Framework.