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