src/Valitron/Validator.php
/**
     * Validate that a field is an active URL by verifying DNS record
     *
     * @param  string  $field
     * @param  mixed   $value
     * @return bool
     */
Validate that a field is an active URL by verifying DNS record
@param  string  $field
@param  mixed   $value
@return bool
Validate that a field is an active URL by verifying DNS record @param string $field @param mixed $value @return bool
protected function validateUrlActive($field, $value)
    {
        foreach ($this->validUrlPrefixes as $prefix) {
            if(strpos($value, $prefix) !== false) {
                $url = str_replace($prefix, '', strtolower($value));
                return checkdnsrr($url);
            }
        }
        return false;
    }
protected function validateUrlActive ( $ field , $ value ) { foreach ( $ this -> validUrlPrefixes as $ prefix ) { if ( strpos ( $ value , $ prefix ) !== false ) { $ url = str_replace ( $ prefix , '' , strtolower ( $ value ) ) ; return checkdnsrr ( $ url ) ; } } return false ; }
Validate that a field is an active URL by verifying DNS record
 @param  string  $field
 @param  mixed   $value
 @return bool
Validate that a field is an active URL by verifying DNS record @param string $field @param mixed $value @return bool