Support the ongoing development of Laravel.io →
Input Forms Validation

Hi.. my project is on Laravel 4.1 and i am using Waavi package for translation.. i would like to check how do i do change the :value for the required_if validation error.

eg for the following string:

The :attribute field is required when :other is :value.

i am able to translate :attribute, :other by using $validator->setAttributeNames()

would like to check how do i get the similar result with the :value placeholder?

Last updated 3 years ago.
0

you need to copy the file \resources\lang\en\validation.php to \resources\lang<lang>\validation.php and change the values there. set the language on the config and everything will be fine.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

bczm8703 bczm8703 Joined 22 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.