From b16a978f1b5c11c949f9caff4e297628a21d0511 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Wed, 23 Oct 2024 16:25:51 -0700 Subject: [PATCH] uses manufacturer factory for manufactuer_id --- database/factories/ComponentFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/ComponentFactory.php b/database/factories/ComponentFactory.php index 7381ce48e8..fcec2dac87 100644 --- a/database/factories/ComponentFactory.php +++ b/database/factories/ComponentFactory.php @@ -42,7 +42,7 @@ class ComponentFactory extends Factory 'purchase_cost' => $this->faker->randomFloat(2), 'min_amt' => $this->faker->numberBetween($min = 1, $max = 2), 'company_id' => Company::factory(), - 'manufacturer_id' => $this->faker->numberBetween(1, 5), + 'manufacturer_id' => Manufacturer::factory(), 'supplier_id' => Supplier::factory(), 'model_number' => $this->faker->numberBetween(1000000, 50000000), ];