Ken hai 2 días
pai
achega
c7d46bc112
Modificáronse 1 ficheiros con 8 adicións e 3 borrados
  1. 8 3
      app/Http/Controllers/admin/Config.php

+ 8 - 3
app/Http/Controllers/admin/Config.php

@@ -309,12 +309,13 @@ class Config extends Controller
                     'type' => ['required', 'string', 'in:image,video,text'],
                     'image' => ['required', 'url'],
                     'text' => ['nullable', 'string'],
+                    'isSend' => ['nullable', 'boolean'],
+                    'isTop' => ['nullable', 'boolean'],
                     'button' => ['array'],
                     'button.*' => ['required', 'array'],
                     'button.*.*.text' => ['required', 'string'],
-                    'button.*.*.url' => ['required', 'string'],
-                    'isSend' => ['nullable', 'boolean'],
-                    'isTop' => ['nullable', 'boolean'],
+                    'button.*.*.url' => ['required', 'url'],
+
                 ]);
 
 
@@ -332,6 +333,10 @@ class Config extends Controller
                     'text' => ['required', 'string', 'min:1'],
                     'isSend' => ['nullable', 'boolean'],
                     'isTop' => ['nullable', 'boolean'],
+                    'button' => ['array'],
+                    'button.*' => ['required', 'array'],
+                    'button.*.*.text' => ['required', 'string'],
+                    'button.*.*.url' => ['required', 'url'],
 
                 ]);
             }