What seems to be the problem:
I have an action class to validate and create new user like following:
Validator::make($input, [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'string', 'email', 'max:255', Rule::unique(User::class),],
'password' => $this->passwordRules(),
])->validateWithBag('createUser');
and I try to show the error with named bag, but I always got empty:
@if($errors->any())
{{ $errors->createUser->first('email') }}
@endif
Does the Livewire
remove the named bag from Illuminate\Validation\ValidationException
?
Is there any way to use the named bag ?
Are you using the latest version of Livewire:
v2.5.5