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?
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community