Ken il y a 5 jours
Parent
commit
10ae414888
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app/Http/Controllers/admin/Config.php

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

@@ -330,8 +330,8 @@ class Config extends Controller
                     'chatId' => ['required', 'string', 'min:1'],
                     'image' => ['required', 'url'],
                     'text' => ['nullable', 'string'],
-                    'button' => ['required', 'array'],
-                    'button.*' => ['array'],
+                    'button' => ['required', 'array','min:1'],
+                    'button.*' => ['array','min:1'],
                     'button.*.*.text' => ['required', 'string'],
                     'button.*.*.url' => ['required', 'url'],
                     'isSend' => ['nullable', 'boolean'],