zhangchangchun %!s(int64=5) %!d(string=hai) anos
pai
achega
ff0fd6cd29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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',