Update seeders with more locations

This commit is contained in:
snipe 2017-10-28 01:03:16 -07:00
parent cfd1925625
commit 7b76bbfd68
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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();
} }
} }