original_string: protected function validateUsingCustomRule($attribute, $value, $rule)
      {
          if (! $rule->passes($attribute, $value)) {
              $this->failedRules[$attribute][get_class($rule)] = [];
  
              $messages = (array) $rule->message();
  
              foreach ($messages as $message) {
                  $this->messages->add($attribute, $this->makeReplacements(
                      $message, $attribute, get_class($rule), []
                  ));
              }
          }
      }
code: protected function validateUsingCustomRule($attribute, $value, $rule)
      {
          if (! $rule->passes($attribute, $value)) {
              $this->failedRules[$attribute][get_class($rule)] = [];
  
              $messages = (array) $rule->message();
  
              foreach ($messages as $message) {
                  $this->messages->add($attribute, $this->makeReplacements(
                      $message, $attribute, get_class($rule), []
                  ));
              }
          }
      }
code_tokens: protected function validateUsingCustomRule ( $ attribute , $ value , $ rule ) { if ( ! $ rule -> passes ( $ attribute , $ value ) ) { $ this -> failedRules [ $ attribute ] [ get_class ( $ rule ) ] = [ ] ; $ messages = ( array ) $ rule -> message ( ) ; foreach ( $ messages as $ message ) { $ this -> messages -> add ( $ attribute , $ this -> makeReplacements ( $ message , $ attribute , get_class ( $ rule ) , [ ] ) ) ; } } }
docstring: Validate an attribute using a custom rule object.
  
  @param  string  $attribute
  @param  mixed  $value
  @param  \Illuminate\Contracts\Validation\Rule  $rule
  @return void
docstring_tokens: Validate an attribute using a custom rule object .