0

I use Laravel 8.83.16 and Nova 3.32 for admin area Also I use Digitalcloud\MultilingualNova\Multilingual for lang in site

I create functional and fields for users For example, field name

Text::make('Name')
  ->sortable()
  ->rules('required', 'max:255'),

enter image description here

And when I try to create user I see error "validation.required".

How I can change error message?

I try to do it in "nova/resources/lang/en/validation.php" and nothing

1 Answer 1

1

I am using NOVA in my project and the following code is working for me

create a file resources/lang/en/validation.php and put the following code.

 return [
    'required' => 'The :attribute field is required.',
  ]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.