Merge branch 'main' of ssh://gitea.office.local:222/alex_chevski/eatvio into alex_chevski-main

This commit is contained in:
Anatoliy Poloz
2023-12-20 11:19:16 +03:00
19 changed files with 1391 additions and 603 deletions

View File

@@ -30,6 +30,8 @@ class PlanFactory extends Factory
'wellness' => $this->faker->boolean(),
];
$wrongTypeBody = json_encode($typeBody);
$packetsOptions = [
'items' => [$this->faker->fruitName(), $this->faker->meatName(), $this->faker->sauceName()],
'price' => $this->faker->randomNumber(),
@@ -45,8 +47,9 @@ class PlanFactory extends Factory
'name' => $this->faker->foodName(),
// 'image' => UploadedFile::fake()->image('plans/Photo_C.png'),
'image' => $fileLocalPath,
'duration' => $this->faker->randomElement([7, 14, 21]),
'state' => $this->faker->randomElement(['active', 'draft', 'archived']),
'duration' => $this->faker->randomElement([7, 14,21]),
'state' => $this->faker->randomElement(['active', 'draft', 'unactive']),
//'type' => $this->faker->randomElement([$typeBody, $wrongTypeBody]),
'type' => $typeBody,
'details' => $this->faker->text(),
'packets_count' => $this->faker->randomElement([1, 3]),