We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af56493 commit a9eea83Copy full SHA for a9eea83
database/factories/ComponentFactory.php
@@ -7,6 +7,7 @@
7
use App\Models\Category;
8
use App\Models\Company;
9
use App\Models\Component;
10
+use App\Models\Manufacturer;
11
use App\Models\Consumable;
12
use App\Models\Location;
13
use App\Models\User;
@@ -41,7 +42,9 @@ public function definition()
41
42
'purchase_cost' => $this->faker->randomFloat(2),
43
'min_amt' => $this->faker->numberBetween($min = 1, $max = 2),
44
'company_id' => Company::factory(),
45
+ 'manufacturer_id' => $this->faker->numberBetween(1, 5),
46
'supplier_id' => Supplier::factory(),
47
+ 'model_number' => $this->faker->numberBetween(1000000, 50000000),
48
];
49
}
50
0 commit comments