laravel get url port code example Example: laravel get host with http Click to copy$host = $request->getSchemeAndHttpHost(); // returns https://dev.site.com