-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify validation exception formatting. (#20173)
* Unify validation exception formatting. This unifies all validation error formatting into the exception handler and out of Form Request. “Don’t Flash” is typically a global concept that always applies to a list of fields for all pages in the applications, so seemed to make sense to specify in one place instead of each form. Total control of the Form Request error response can still be gained by overriding failedValidation and throwing a HttpResponseException with whatever response you want. * Apply fixes from StyleCI (#20174) * shorten method call * remove old test * Apply fixes from StyleCI (#20175)
- Loading branch information
1 parent
98b56b7
commit e73fed3
Showing
4 changed files
with
67 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters