Use the proper ID for status ID factory

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-12-02 17:38:06 -08:00
parent 5a01fff79c
commit 3a1e2a56d6

View file

@ -41,7 +41,7 @@ class AssetFactory extends Factory
'name' => null,
'rtd_location_id' => Location::factory()->create(),
'serial' => $this->faker->uuid,
'status_id' => StatusLabel::factory()->create(),
'status_id' => StatusLabel::factory()->create()->id,
'user_id' => 1,
'asset_tag' => $this->faker->unixTime('now'),
'notes' => 'Created by DB seeder',