Skip to content

Commit

Permalink
uses manufacturer factory for manufactuer_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Godmartinz committed Oct 23, 2024
1 parent 55ba627 commit b16a978
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 b16a978

Please sign in to comment.