Laravel zdobądź hosta z HTTP
$host = $request->getSchemeAndHttpHost(); // returns https://dev.site.com
TheDutchScorpion
$host = $request->getSchemeAndHttpHost(); // returns https://dev.site.com
//Laravel Get Host
$host = request()->getHttpHost();
//output i.e "127.0.0.1:8000"
$host = request()->getHost();
//output i.e "127.0.0.1"
$host = request()->getSchemeAndHttpHost();
//output i.e "http://127.0.0.1:8000"