ardent
ardent copied to clipboard
customAttributes support
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.
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.
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