Laravel 9 gives wrong validation error messages

Viewed 123

I don't get the correct validation error messages, instead I get this dot-notation error message:

wrong validation message

When I submit the empty form, the fabric error message shows validation.required instead of Fabric is required.

Here is my code:

$request->validate([
    'fabric'=>'required|in:3'
]);
1 Answers
Related