protected function attachValidator()
    {
        return ValidatorFacade::resolver(function($translator, $data, $rules, $messages) {
                    return new CustomValidator($translator, $data, $rules, $messages);
                });
    }