Difference Between numeric and integer Validation Rules in Laravel

2531
Share:
difference-between-numeric-and-integer-validation-rules-in-laravel

Question

What's the difference between numeric and integer validation rules in Laravel?

Answer

Integer validation rule checks whether the type of the given variable is integer. Integer is a number that can be written without a fractional component. Meanwhile numeric validation rule checks whether variable is a number or a numeric string.

 

Tags
Share:

0 comment

Leave a reply

Your email address will not be published. Required fields are marked *