laravel get domain path code example Example 1: laravel get current domain request()->getHost(); Example 2: get app url in laravel URL::to('/');