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

Joundill
  • 6,828
  • 12
  • 36
  • 50

1 Answers1

0

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.',
  ]
Bilal Maqsood
  • 1,163
  • 3
  • 15
  • 43