getTargetUrl(); /** * The original hostname in the redirect response. * * @var string $hostname */ $hostname = parse_url($url, PHP_URL_HOST); $this->setTargetUrl((string) str($url)->replace($hostname, $domain)); return $this; }); } }