Fix key name

This commit is contained in:
Marcus Moore 2023-03-14 12:04:31 -07:00
parent 7cf424b914
commit 4c4101fe64
No known key found for this signature in database

View file

@ -175,7 +175,7 @@ class AssetModelFactory extends Factory
return Category::find(1) ?? Category::factory()->assetLaptopCategory();
},
'manufacturer_id' => function () {
return Manufacturer::where('Asus', 'Asus')->first() ?? Manufacturer::factory()->asus();
return Manufacturer::where('name', 'Asus')->first() ?? Manufacturer::factory()->asus();
},
'eol' => '36',
'depreciation_id' => 1,