|
|
@@ -101,8 +101,8 @@ class Keyboard extends Controller
|
|
|
'language' => 'required|string',
|
|
|
'image' => ['nullable', 'url'],
|
|
|
'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)) {
|
|
|
unset($validator['id']);
|