FleetCart/Modules/Product/Database/Factories/ModelFactory.php
2023-06-11 13:14:03 +01:00

17 lines
472 B
PHP

<?php
use Modules\Product\Entities\Product;
$factory->define(Product::class, function (Faker\Generator $faker) {
return [
'name' => $faker->text(60),
'description' => $faker->paragraph(),
'price' => $faker->numberBetween(10, 9000),
'manage_stock' => false,
'in_stock' => $faker->boolean(),
'slug' => $faker->slug(),
'sku' => $faker->word(),
'is_active' => $faker->boolean(),
];
});