get domain from url string laravel code example Example: laravel get current domain request()->getHost();