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) {
|
||||
return [
|
||||
'name' => null,
|
||||
'rtd_location_id' => 1,
|
||||
'rtd_location_id' => rand(1,30),
|
||||
'serial' => $faker->uuid,
|
||||
'status_id' => 1,
|
||||
'user_id' => 1,
|
||||
|
|
|
@ -8,6 +8,6 @@ class LocationSeeder extends Seeder
|
|||
public function run()
|
||||
{
|
||||
Location::truncate();
|
||||
factory(Location::class, 5)->create();
|
||||
factory(Location::class, 30)->create();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue