Browse Source

Make app name configurable in environment file

Matthew Davis 7 years ago
parent
commit
323e553f33
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,3 +1,4 @@
+APP_NAME=Laravel
 APP_ENV=local
 APP_KEY=
 APP_DEBUG=true

+ 1 - 1
config/app.php

@@ -12,7 +12,7 @@ return [
     | any other location as required by the application or its packages.
     */
 
-    'name' => 'Laravel',
+    'name' => env('APP_NAME', 'Laravel'),
 
     /*
     |--------------------------------------------------------------------------