Overtrue\Validation\Validator::validateActiveUrl PHP Method

validateActiveUrl() protected method

Validate that an attribute is an active URL.
protected validateActiveUrl ( string $attribute, mixed $value ) : boolean
$attribute string
$value mixed
return boolean
    protected function validateActiveUrl($attribute, $value)
    {
        $url = str_replace(['http://', 'https://', 'ftp://'], '', strtolower($value));
        return checkdnsrr($url);
    }
Validator