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', ]); }