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), []
                ));
            }
        }
    }
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), []
                ));
            }
        }
    }
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 ) , [ ] ) ) ; } } }
Validate an attribute using a custom rule object.

@param  string  $attribute
@param  mixed  $value
@param  \Illuminate\Contracts\Validation\Rule  $rule
@return void
Validate an attribute using a custom rule object .