Ken 3 天之前
父節點
當前提交
b6000eb023
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Http/Controllers/admin/Keyboard.php

+ 2 - 2
app/Http/Controllers/admin/Keyboard.php

@@ -101,8 +101,8 @@ class Keyboard extends Controller
                 'language' => 'required|string',
                 'language' => 'required|string',
                 'image' => ['nullable', 'url'],
                 'image' => ['nullable', 'url'],
                 'buttons' => ['array'],
                 'buttons' => ['array'],
-                'button.*' => ['array', 'min:1'],
-                'button.*.*.text' => ['required', 'string', 'min:1'],
+                'buttons.*' => ['array', 'min:1'],
+                'buttons.*.*.text' => ['required', 'string', 'min:1'],
             ];
             ];
             if (empty($id)) {
             if (empty($id)) {
                 unset($validator['id']);
                 unset($validator['id']);