Skip to content

Commit

Permalink
Merge pull request #15722 from Godmartinz/fix_component_factory
Browse files Browse the repository at this point in the history
Fixed Component Factory: use manufacturer factory for `manufactuer_id`
  • Loading branch information
snipe authored Oct 24, 2024
2 parents 55ba627 + b16a978 commit 5509d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/factories/ComponentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function definition()
'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),
];
Expand Down

0 comments on commit 5509d75

Please sign in to comment.