mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Fixed seeds
This commit is contained in:
parent
4b168e8cfa
commit
40aac1bf89
|
@ -92,8 +92,8 @@ $factory->defineAs(App\Models\Manufacturer::class, 'manufacturer', function (Fak
|
||||||
$factory->defineAs(App\Models\Component::class, 'component', function (Faker\Generator $faker) {
|
$factory->defineAs(App\Models\Component::class, 'component', function (Faker\Generator $faker) {
|
||||||
return [
|
return [
|
||||||
'name' => $faker->text(20),
|
'name' => $faker->text(20),
|
||||||
'category_id' => $faker->numberBetween(16,20),
|
'category_id' => $faker->numberBetween(21,25),
|
||||||
'total_qty' => $faker->numberBetween(5, 10),
|
'total_qty' => $faker->numberBetween(3, 10),
|
||||||
'min_amt' => $faker->numberBetween($min = 1, $max = 2),
|
'min_amt' => $faker->numberBetween($min = 1, $max = 2),
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue