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:
peaklabs-dev 2026-02-24 23:23:41 +01:00
parent 0637c0be64
commit 7ec31e3463
No known key found for this signature in database

View file

@ -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.
*