Account for null asset in factory state
This commit is contained in:
parent
b63962e90b
commit
6b6e18695f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class LicenseSeatFactory extends Factory
|
|||
{
|
||||
return $this->state(function () use ($asset) {
|
||||
return [
|
||||
'asset_id' => $asset->id,
|
||||
'asset_id' => $asset->id ?? Asset::factory(),
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue