DEV Community

Abdulfatai Suleiman
Abdulfatai Suleiman

Posted on

Validate a Nigerian Phone Number in Laravel

There are times when you just want to make an input field accept values in the phone number format. In this article, I show just how to go about it in laravel. Any string taken in is checked to see if it has ‘+234’ as the first three numbers and if the remaining numbers are just 10 in length.
So, here it goes.

Alt Text

Thanks for staying with me until this point.
Please I would love to receive your questions and reviews on this.

Top comments (0)