protected function shouldBeNumeric($attribute, $rule)
    {
        if (is_numeric($this->getValue($attribute))) {
            $this->numericRules[] = $rule;
        }
    }
protected function shouldBeNumeric($attribute, $rule)
    {
        if (is_numeric($this->getValue($attribute))) {
            $this->numericRules[] = $rule;
        }
    }
protected function shouldBeNumeric ( $ attribute , $ rule ) { if ( is_numeric ( $ this -> getValue ( $ attribute ) ) ) { $ this -> numericRules [ ] = $ rule ; } }
Adds the existing rule to the numericRules array if the attribute's value is numeric.

@param  string  $attribute
@param  string  $rule

@return void
Adds the existing rule to the numericRules array if the attribute s value is numeric .