// Define the Product class class Product extends Model { protected $fillable = ['name', 'price', 'description']; } // Create a new product instance $product = new Product; // Set its properties $product->name = 'Widget'; $product->price = 9.99; $product->description = 'A versatile widget that does it all.'; // Save the product to the database $product->save();In this example, we define a Product class that extends Laravel's built-in Model class. We use the $fillable property to define which properties can be set en masse (i.e. via an array), and then create a new instance of the Product class. We set its name, price, and description properties, and then call the save() method to store it in the database. Other PHP frameworks and libraries may have slightly different syntax or approaches for product creation, but the basic process should be similar: create a product object, set its properties, and save it to a database. The package library for this example is Eloquent.