Skip to content

Commit 3624a82

Browse files
committed
respect magic _error_bag
1 parent d3489bd commit 3624a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Exceptions/Handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ protected function invalid($request, ValidationException $exception)
416416
{
417417
return redirect($exception->redirectTo ?? url()->previous())
418418
->withInput(Arr::except($request->input(), $this->dontFlash))
419-
->withErrors($exception->errors(), $exception->errorBag);
419+
->withErrors($exception->errors(), $request->input('_error_bag', $exception->errorBag));
420420
}
421421

422422
/**

0 commit comments

Comments
 (0)