Silent %!s(int64=7) %!d(string=hai) anos
pai
achega
44a92e172f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Admin/StudentController.php

+ 1 - 1
app/Http/Controllers/Admin/StudentController.php

xqd
@@ -68,7 +68,7 @@ class StudentController extends Controller
         ]);
 
         if($validator->fails()) {
-            return back()->withErrors($validator);
+            return back()->withErrors($validator)->withInput();
         }
 
         $res = $this->model->create($request->input('data'));