/** * Validate that an attribute is an active URL. * * @param string $attribute * @param mixed $value * @return bool */ protected function validate_active_url($attribute, $value) { $url = str_replace(array('http://', 'https://', 'ftp://'), '', Str::lower($value)); return checkdnsrr($url); }