first upload all files
This commit is contained in:
16
Modules/Product/Database/Factories/ModelFactory.php
Normal file
16
Modules/Product/Database/Factories/ModelFactory.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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(),
|
||||
];
|
||||
});
|
||||
Reference in New Issue
Block a user