mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixes trying to get property 'id' of non-object in develop seeders
This commit is contained in:
parent
503c802d70
commit
b43a0569b1
|
@ -8,7 +8,6 @@ use App\Models\Category;
|
||||||
use App\Models\Location;
|
use App\Models\Location;
|
||||||
use App\Models\Supplier;
|
use App\Models\Supplier;
|
||||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||||
use App\Models\StatusLabel;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -41,7 +40,7 @@ class AssetFactory extends Factory
|
||||||
'name' => null,
|
'name' => null,
|
||||||
'rtd_location_id' => Location::factory()->create(),
|
'rtd_location_id' => Location::factory()->create(),
|
||||||
'serial' => $this->faker->uuid,
|
'serial' => $this->faker->uuid,
|
||||||
'status_id' => StatusLabel::factory()->create()->id,
|
'status_id' => 1,
|
||||||
'user_id' => 1,
|
'user_id' => 1,
|
||||||
'asset_tag' => $this->faker->unixTime('now'),
|
'asset_tag' => $this->faker->unixTime('now'),
|
||||||
'notes' => 'Created by DB seeder',
|
'notes' => 'Created by DB seeder',
|
||||||
|
|
Loading…
Reference in a new issue