php - Laravel Validation - number must start with 0 (zero) -
How do I verify that a number should start with 0?
For example:
$ rule = ['full_name' = & gt; 'Required | Minimum: 6 ',' number '= & gt; 'Expected | Numerical | Minimum: 5 ',]; This is required on the number field, only numeric and at least 5 digits. I must include the rule that it should start with 0?
larval regex: pattern validator, inside an array () and this A regex of something like: / ^ [0] [0-9] {4,} /
Comments
Post a Comment