laravel 5 get domain url that api call code example Example: laravel get current domain request()->getHost();