2016-11-05 8 views

答えて

1

Laravelのソースコードによると、両方の検証が次のロジックを持っています。 here >>

- Laravelのソースコードへの複数の参照DIGについて

// For rule 'integer' 
protected function validateInteger($attribute, $value) 
{ 
    return filter_var($value, FILTER_VALIDATE_INT) !== false; 
} 

// For rule 'numeric' 
protected function validateNumeric($attribute, $value) 
{ 
    return is_numeric($value); 
}