From 278c41887ce73914dc0ee645eb13ae4e5b60f1b0 Mon Sep 17 00:00:00 2001 From: Aden Fraser Date: Wed, 17 Feb 2016 23:28:21 +0000 Subject: [PATCH] APP_URL added to Environment Configuration --- .env.example | 1 + config/app.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index afbeae44..a50eace2 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ APP_ENV=local APP_DEBUG=true APP_KEY=SomeRandomString +APP_URL=http://localhost DB_HOST=127.0.0.1 DB_DATABASE=homestead diff --git a/config/app.php b/config/app.php index 04ae95e1..087bf765 100644 --- a/config/app.php +++ b/config/app.php @@ -39,7 +39,7 @@ | */ - 'url' => 'http://localhost', + 'url' => env('APP_URL', 'http://localhost'), /* |--------------------------------------------------------------------------