diff --git a/database/factories/BottleFactory.php b/database/factories/BottleFactory.php new file mode 100644 index 0000000..c110785 --- /dev/null +++ b/database/factories/BottleFactory.php @@ -0,0 +1,23 @@ + + */ +class BottleFactory extends Factory +{ + public function definition(): array + { + return [ + 'name' => $this->faker->word(), + 'slug' => $this->faker->slug(), + 'size' => $this->faker->randomNumber(2), + 'cost_price' => $this->faker->randomNumber(2), + 'sale_price' => $this->faker->randomNumber(2), + 'description' => $this->faker->sentence(), + ]; + } +} diff --git a/database/factories/FormulaFactory.php b/database/factories/FormulaFactory.php new file mode 100644 index 0000000..5ee7f96 --- /dev/null +++ b/database/factories/FormulaFactory.php @@ -0,0 +1,20 @@ + + */ +class FormulaFactory extends Factory +{ + public function definition(): array + { + return [ + 'quality' => $this->faker->word(), + 'size' => $this->faker->randomNumber(2), + 'volume' => $this->faker->randomNumber(2), + ]; + } +}