Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ilex01's avatar

Where is the validation language file under Laravel 10.x?

Where is the validation language file under Laravel 10.x?

0 likes
1 reply
gych's avatar
gych
Best Answer
Level 29

If you don't have this file yet you can add it in resources/lang/en. Add a new file validation.php with this content and do the same for other desired languages

<?php

return [
    'required' => 'The :attribute field is required.',
    'email' => 'The :attribute field must be a valid email address.',
    // add more validation message keys and strings as needed
];
1 like

Please or to participate in this conversation.