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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -