laravel get base url without public in url code example Example: get app url in laravel URL::to('/');