zhangchangchun 5 년 전
부모
커밋
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',