Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get domain name laravel

Route::get('/get-domain', function(){
    $host = request()->getHttpHost();
    echo $host ."<br/>";
    $getHost = request()->getHost();
    echo $getHost ."<br/>";
    $hostwithHttp = request()->getSchemeAndHttpHost();
    echo $hostwithHttp ."<br/>";
});
Source by w3codegenerator.com #
 
PREVIOUS NEXT
Tagged: #domain #laravel
ADD COMMENT
Topic
Name
6+4 =