Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get domain url with https in laravel

1. $host = request()->getHttpHost(); Output : laravel.com.
2. $getHost = request()->getHost(); Output : laravel.com.
3. $hostwithHttp = request()->getSchemeAndHttpHost(); Output : https://laravel.com
 
PREVIOUS NEXT
Tagged: #domain #url #https #laravel
ADD COMMENT
Topic
Name
3+8 =