Answers for "laravel get domain from url"

PHP
0

laravel get current domain

request()->getHost();
Posted by: Guest on April-22-2020
0

laravel get host with http

$host = $request->getSchemeAndHttpHost(); // returns https://dev.site.com
Posted by: Guest on May-07-2020

Code answers related to "laravel get domain from url"

Browse Popular Code Answers by Language