// Create a new Member instance $member = new Member; // Set the member attributes $member->name = 'John Doe'; $member->email = 'johndoe@example.com'; // Save the member to the database $member->save();
// Find the member by ID $member = Member::find($id); // Update the member attributes $member->name = 'Jane Doe'; $member->email = 'janedoe@example.com'; // Save the updated member to the database $member->save();In both examples, the `save()` method is used to store or update the member record in the database. The Nova package library provides additional functionality for managing members, such as validation rules, authentication, and authorization.