From 4c4101fe64a3132c0a4f3fab71db5cf11a6ce788 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 14 Mar 2023 12:04:31 -0700 Subject: [PATCH] Fix key name --- database/factories/AssetModelFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/AssetModelFactory.php b/database/factories/AssetModelFactory.php index 2b52bcff83..df538e1c7e 100644 --- a/database/factories/AssetModelFactory.php +++ b/database/factories/AssetModelFactory.php @@ -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,