diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index 628a5a9e3..5748558e3 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -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. *