diff --git a/database/factories/AssetFactory.php b/database/factories/AssetFactory.php index 9c4badd7ff..112ecf889d 100644 --- a/database/factories/AssetFactory.php +++ b/database/factories/AssetFactory.php @@ -16,7 +16,7 @@ use App\Models\Category; $factory->define(Asset::class, function (Faker\Generator $faker) { return [ 'name' => null, - 'rtd_location_id' => 1, + 'rtd_location_id' => rand(1,30), 'serial' => $faker->uuid, 'status_id' => 1, 'user_id' => 1, diff --git a/database/seeds/LocationSeeder.php b/database/seeds/LocationSeeder.php index 3f0b811814..494f08c88f 100644 --- a/database/seeds/LocationSeeder.php +++ b/database/seeds/LocationSeeder.php @@ -8,6 +8,6 @@ class LocationSeeder extends Seeder public function run() { Location::truncate(); - factory(Location::class, 5)->create(); + factory(Location::class, 30)->create(); } }