get app url in laravel code example Example 1: get app url in laravel URL::to('/'); Example 2: get env app url laravel env('APP_URL')