mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
chore(setup): always return all validation errors
- by default inertia only returns the first validation error this changes it to always return all validation errors
This commit is contained in:
parent
0637c0be64
commit
7ec31e3463
1 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,16 @@ final class HandleInertiaRequests extends Middleware
|
|||
*/
|
||||
protected $rootView = 'app';
|
||||
|
||||
/**
|
||||
* When enabled, each field will contain an array of all error strings
|
||||
* instead of only the first validation error.
|
||||
*
|
||||
* @see https://inertiajs.com/validation#multiple-errors-per-field
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $withAllErrors = true;
|
||||
|
||||
/**
|
||||
* Determines the current asset version.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue