Ken 2 tygodni temu
rodzic
commit
b4c9be1365
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Http/Controllers/admin/Menu.php

+ 1 - 1
app/Http/Controllers/admin/Menu.php

@@ -77,7 +77,7 @@ class Menu extends Controller
         try {
         try {
             $id = request()->input('id');
             $id = request()->input('id');
             $validator = [
             $validator = [
-                'id' => ['nullable', 'integer'],
+                'id' => ['nullable', 'integer', 'min:1'],
                 'parent_id' => 'nullable|integer',
                 'parent_id' => 'nullable|integer',
                 'title' => 'required|string|max:100',
                 'title' => 'required|string|max:100',
                 'status' => 'required|nullable|integer',
                 'status' => 'required|nullable|integer',