From 92e0c59f89a1daaed30e36eee191ae778bacfa4b Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 20 Mar 2023 12:01:39 -0700 Subject: [PATCH] Fix typo in Keyboard accessory name --- database/factories/AccessoryFactory.php | 4 ++-- database/factories/CategoryFactory.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database/factories/AccessoryFactory.php b/database/factories/AccessoryFactory.php index 124a72c4a7..8ce34303b3 100644 --- a/database/factories/AccessoryFactory.php +++ b/database/factories/AccessoryFactory.php @@ -47,7 +47,7 @@ class AccessoryFactory extends Factory 'name' => 'Bluetooth Keyboard', 'image' => 'bluetooth.jpg', 'category_id' => function () { - return Category::where('name', 'Keyboardss')->first() ?? Category::factory()->accessoryKeyboardCategory(); + return Category::where('name', 'Keyboards')->first() ?? Category::factory()->accessoryKeyboardCategory(); }, 'manufacturer_id' => function () { return Manufacturer::where('name', 'Apple')->first() ?? Manufacturer::factory()->apple(); @@ -66,7 +66,7 @@ class AccessoryFactory extends Factory 'name' => 'USB Keyboard', 'image' => 'usb-keyboard.jpg', 'category_id' => function () { - return Category::where('name', 'Keyboardss')->first() ?? Category::factory()->accessoryKeyboardCategory(); + return Category::where('name', 'Keyboards')->first() ?? Category::factory()->accessoryKeyboardCategory(); }, 'manufacturer_id' => function () { return Manufacturer::where('name', 'Apple')->first() ?? Manufacturer::factory()->apple(); diff --git a/database/factories/CategoryFactory.php b/database/factories/CategoryFactory.php index 2cabb54a21..94a9626da4 100644 --- a/database/factories/CategoryFactory.php +++ b/database/factories/CategoryFactory.php @@ -103,7 +103,7 @@ class CategoryFactory extends Factory public function accessoryKeyboardCategory() { return $this->state([ - 'name' => 'Keyboardss', + 'name' => 'Keyboards', 'category_type' => 'accessory', ]); }