ardent icon indicating copy to clipboard operation
ardent copied to clipboard

customAttributes support

Open cnberg opened this issue 10 years ago • 2 comments

Validator Class in Laravel has customAttributes support, it's very useful for i18n or print better notice for end users.

Such as :

$niceNames = array( 'first_name' => 'First Name' );

$validator = Validator::make(Input::all(), $rules); $validator->setAttributeNames($niceNames);

Please add this feature, thanks.

cnberg avatar Apr 21 '14 17:04 cnberg

Ardent passes validation off the Laravel's validator class. You can set custom validation messages in the same way you would directly using the validator class.

sjdaws avatar May 02 '14 14:05 sjdaws

I thinks this is not related to custom validation messages, but to the issue that was fixed here: https://github.com/laravel/framework/issues/439

sidneywidmer avatar Jul 14 '14 13:07 sidneywidmer