mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -08:00
Update seeders with more locations
This commit is contained in:
parent
cfd1925625
commit
7b76bbfd68
|
@ -16,7 +16,7 @@ use App\Models\Category;
|
||||||
$factory->define(Asset::class, function (Faker\Generator $faker) {
|
$factory->define(Asset::class, function (Faker\Generator $faker) {
|
||||||
return [
|
return [
|
||||||
'name' => null,
|
'name' => null,
|
||||||
'rtd_location_id' => 1,
|
'rtd_location_id' => rand(1,30),
|
||||||
'serial' => $faker->uuid,
|
'serial' => $faker->uuid,
|
||||||
'status_id' => 1,
|
'status_id' => 1,
|
||||||
'user_id' => 1,
|
'user_id' => 1,
|
||||||
|
|
|
@ -8,6 +8,6 @@ class LocationSeeder extends Seeder
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
Location::truncate();
|
Location::truncate();
|
||||||
factory(Location::class, 5)->create();
|
factory(Location::class, 30)->create();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue