Ken 3 hete
szülő
commit
7e0a031a62
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app/Http/Controllers/admin/Config.php

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

@@ -53,13 +53,13 @@ class Config extends Controller
         if ($id) {
             $validator = [
                 'id' => ['required', 'integer', 'min:1'],
-                'val' => 'nullable|string',
+                'val' => ['required', 'string'],
                 'remark' => 'required|nullable|string',
             ];
         } else {
             $validator = [
                 'field' => 'required|string|max:50|alpha_dash|unique:config,field',
-                'val' => 'nullable|string',
+                'val' => 'required|string',
                 'remark' => 'required|nullable|string',
             ];
         }