Browse Source

APP_URL added to Environment Configuration

Aden Fraser 8 years ago
parent
commit
278c41887c
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .env.example
  2. 1 1
      config/app.php

+ 1 - 0
.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

+ 1 - 1
config/app.php

@@ -39,7 +39,7 @@ return [
     |
     */
 
-    'url' => 'http://localhost',
+    'url' => env('APP_URL', 'http://localhost'),
 
     /*
     |--------------------------------------------------------------------------