first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
use Faker\Generator as Faker;
use Modules\Option\Entities\Option;
use Modules\Option\Entities\OptionValue;
$factory->define(OptionValue::class, function (Faker $faker) {
return [
'option_id' => function () {
return factory(Option::class)->create()->id;
},
'name' => $faker->word(),
'price' => $faker->randomNumber(),
'price_type' => $faker->randomElement(['fixed', 'percent']),
];
});
$factory->define(Option::class, function (Faker $faker) {
return [
'name' => $faker->word(),
'type' => $faker->randomElement(['field', 'dropdown']),
'is_required' => $faker->boolean(),
];
});