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