FleetCart/Modules/Product/Database/Factories/ModelFactory.php

17 lines
472 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?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(),
];
});