getschemeandhttphost for https in laravel code example
Example: laravel get host with http
$host = $request->getSchemeAndHttpHost(); // returns https://dev.site.com
$host = $request->getSchemeAndHttpHost(); // returns https://dev.site.com