$user = User::find(1); $user->update([ 'name' => 'John Doe', 'email' => 'johndoe@example.com' ]);
User::where('created_at', '<', now()-\>hour) ->update(['active' => false]);In this example, we update all users created more than an hour ago to set their `active` status to `false`. Overall, these examples demonstrate how `update` method can be used to easily update records in your database using Laravel's Eloquent ORM.