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