Skip to content

Commit 80f159f

Browse files
authored
Merge pull request #393 from connorabbas/develop
Improvements - Multiple Validation Errors per Input Field, Package Version Bumps
2 parents 1517754 + c0e5488 commit 80f159f

File tree

15 files changed

+1755
-1890
lines changed

15 files changed

+1755
-1890
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// https://aka.ms/devcontainer.json
22
{
3-
"name": "PrimeVue Inertia",
3+
"name": "Laravel PrimeVue Starter",
44
"dockerComposeFile": [
55
"../docker-compose.local.yml"
66
],

app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ class HandleInertiaRequests extends Middleware
1818
*/
1919
protected $rootView = 'app';
2020

21+
/**
22+
* Receive all validation errors for each field, instead of only the first one
23+
*
24+
* @see https://inertiajs.com/docs/v2/the-basics/validation#multiple-errors-per-field
25+
*/
26+
protected $withAllErrors = true;
27+
2128
/**
2229
* Determines the current asset version.
2330
*

0 commit comments

Comments
 (0)