zhangchangchun лет назад: 5
Родитель
Сommit
ff0fd6cd29
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/Topic/TopicController.php

+ 1 - 1
app/Http/Controllers/Topic/TopicController.php

@@ -86,7 +86,7 @@ class TopicController extends Controller {
     //编辑
     public function edit(Request $request){
         $validator = Validator::make($request->all(), [
-            'id'=>'integer|string|max:12',
+            'id'=>'integer|required|max:12',
             'name' => 'required|string|max:12',
             'img' => 'required|url',
             'desc' => 'required|string|max:100',