From e9ed2386304aba7e9fe065c6831e8df195d0ae46 Mon Sep 17 00:00:00 2001 From: mburguet Date: Wed, 17 Feb 2016 10:17:01 -0500 Subject: [PATCH] Add APP_URL env variable ... like the latest versions of laravel --- .env.example | 1 + config/app.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 560a235b..9ea73ea4 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ APP_ENV=production APP_DEBUG=true +APP_URL=http://localhost # Database connection name, which corresponds to the database driver. diff --git a/config/app.php b/config/app.php index abdde9c5..eaf4b5c5 100644 --- a/config/app.php +++ b/config/app.php @@ -29,7 +29,7 @@ return [ | */ - 'url' => 'http://localhost', + 'url' => env('APP_URL', 'http://localhost'), /* |--------------------------------------------------------------------------