mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-28 10:05:25 -05: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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user