mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Fix typo in Keyboard accessory name
This commit is contained in:
parent
1bad8e1fc2
commit
92e0c59f89
|
@ -47,7 +47,7 @@ class AccessoryFactory extends Factory
|
||||||
'name' => 'Bluetooth Keyboard',
|
'name' => 'Bluetooth Keyboard',
|
||||||
'image' => 'bluetooth.jpg',
|
'image' => 'bluetooth.jpg',
|
||||||
'category_id' => function () {
|
'category_id' => function () {
|
||||||
return Category::where('name', 'Keyboardss')->first() ?? Category::factory()->accessoryKeyboardCategory();
|
return Category::where('name', 'Keyboards')->first() ?? Category::factory()->accessoryKeyboardCategory();
|
||||||
},
|
},
|
||||||
'manufacturer_id' => function () {
|
'manufacturer_id' => function () {
|
||||||
return Manufacturer::where('name', 'Apple')->first() ?? Manufacturer::factory()->apple();
|
return Manufacturer::where('name', 'Apple')->first() ?? Manufacturer::factory()->apple();
|
||||||
|
@ -66,7 +66,7 @@ class AccessoryFactory extends Factory
|
||||||
'name' => 'USB Keyboard',
|
'name' => 'USB Keyboard',
|
||||||
'image' => 'usb-keyboard.jpg',
|
'image' => 'usb-keyboard.jpg',
|
||||||
'category_id' => function () {
|
'category_id' => function () {
|
||||||
return Category::where('name', 'Keyboardss')->first() ?? Category::factory()->accessoryKeyboardCategory();
|
return Category::where('name', 'Keyboards')->first() ?? Category::factory()->accessoryKeyboardCategory();
|
||||||
},
|
},
|
||||||
'manufacturer_id' => function () {
|
'manufacturer_id' => function () {
|
||||||
return Manufacturer::where('name', 'Apple')->first() ?? Manufacturer::factory()->apple();
|
return Manufacturer::where('name', 'Apple')->first() ?? Manufacturer::factory()->apple();
|
||||||
|
|
|
@ -103,7 +103,7 @@ class CategoryFactory extends Factory
|
||||||
public function accessoryKeyboardCategory()
|
public function accessoryKeyboardCategory()
|
||||||
{
|
{
|
||||||
return $this->state([
|
return $this->state([
|
||||||
'name' => 'Keyboardss',
|
'name' => 'Keyboards',
|
||||||
'category_type' => 'accessory',
|
'category_type' => 'accessory',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue