= 9 && strlen($digits) <= 15 ? $digits : null; } /** Whether the number is of the home country. */ public static function isHome(string $number): bool { $digits = self::international($number); return $digits !== null && str_starts_with($digits, self::country()); } private static function country(): string { return preg_replace('/\D+/', '', (string) config('manager.leads.country_code', '31')) ?: '31'; } }