check phone number laravel code example
Example 1: laravel validation for mobile number
//inside laravel request rules(), add this for phone number varification
'phone' => 'required|min:11|numeric',
Example 2: php validate phone number
$phone = '000-0000-0000';
if(preg_match("/^[0-9]{3}-[0-9]{4}-[0-9]{4}$/", $phone)) {
// $phone is valid
}