Fix typo in Keyboard accessory name

This commit is contained in:
Marcus Moore 2023-03-20 12:01:39 -07:00
parent 1bad8e1fc2
commit 92e0c59f89
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -103,7 +103,7 @@ class CategoryFactory extends Factory
public function accessoryKeyboardCategory()
{
return $this->state([
'name' => 'Keyboardss',
'name' => 'Keyboards',
'category_type' => 'accessory',
]);
}