Closed SebRothIFB closed 1 year ago
@SebRothIFB do you mean use the label value FCL or LCL
in the returned error message?
If that's what you want you would do that on the backend. you could create a form request with an attributes method like below:
public function attributes()
{
return [
...
'FCL_LCL' => 'FCL or LCL',
];
}
You error message will return "The FLC or LCL field is required" Hopefully that what you wanted.
@thecyrilcril
Thanks for the help and the good advice! That helped me a lot.
Description:
Is there a way to show validation errors based on Label attribute in x-splade-input?
`
`