easy enough. At the bottom of app/lang/en/validation.php add an entry to the attributes array like 'email' => 'Email address'
hope this helps
What if you only would want to apply it to a specific form?
Use unique names in that form?
ivermoller said:
What if you only would want to apply it to a specific form?
Use unique names in that form?
Since the file is global, I thnk so. I've found lot of discussions about this, like extending the validation class,.. but this is the easiest way. And yes, I would use unique names, but usually 'email' always show as 'Email address' so there's no point having 'fomxxx_email' to distinguish fields.. Side note: I just created a multilanguage site and used something like 'email' => trans('profile.email') in the various language validation files. Then in the lang/[en,it,fr]/profile.php files, you can adapt your translations
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community