Please help me I am new in laravel. I set form validation like first two characters are alphabet and last four character numeric. Example AB1234
Laravel form validation set rules like first two character are alphabet and last four character numeric like AB1234
1.6k views Asked by waqar At
2
As comments say, you can do this by regex:
According to docs, this rule use
preg_matchso you should follow the same formatting required bypreg_match. Don't forget to use array to specify rules (just like example code).