src/Valitron/Validator.php
/**
     * Validate that a field is a valid URL by syntax
     *
     * @param  string  $field
     * @param  mixed   $value
     * @return bool
     */
Validate that a field is a valid URL by syntax
@param  string  $field
@param  mixed   $value
@return bool
Validate that a field is a valid URL by syntax @param string $field @param mixed $value @return bool
protected function validateUrl($field, $value)
    {
        foreach ($this->validUrlPrefixes as $prefix) {
            if(strpos($value, $prefix) !== false) {
                return filter_var($value, FILTER_VALIDATE_URL) !== false;
            }
        }
        return false;
    }
protected function validateUrl ( $ field , $ value ) { foreach ( $ this -> validUrlPrefixes as $ prefix ) { if ( strpos ( $ value , $ prefix ) !== false ) { return filter_var ( $ value , FILTER_VALIDATE_URL ) !== false ; } } return false ; }
Validate that a field is a valid URL by syntax
 @param  string  $field
 @param  mixed   $value
 @return bool
Validate that a field is a valid URL by syntax @param string $field @param mixed $value @return bool