app.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. return [
  11. /*
  12. |--------------------------------------------------------------------------
  13. | Application Name
  14. |--------------------------------------------------------------------------
  15. |
  16. | This value is the name of your application. This value is used when the
  17. | framework needs to place the application's name in a notification or
  18. | any other location as required by the application or its packages.
  19. |
  20. */
  21. 'name' => env('APP_NAME', 'Lumen'),
  22. /*
  23. |--------------------------------------------------------------------------
  24. | Application Environment
  25. |--------------------------------------------------------------------------
  26. |
  27. | This value determines the "environment" your application is currently
  28. | running in. This may determine how you prefer to configure various
  29. | services the application utilizes. Set this in your ".env" file.
  30. |
  31. */
  32. 'env' => env('APP_ENV', 'production'),
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Application Debug Mode
  36. |--------------------------------------------------------------------------
  37. |
  38. | When your application is in debug mode, detailed error messages with
  39. | stack traces will be shown on every error that occurs within your
  40. | application. If disabled, a simple generic error page is shown.
  41. |
  42. */
  43. 'debug' => env('APP_DEBUG', false),
  44. /*
  45. |--------------------------------------------------------------------------
  46. | Application URL
  47. |--------------------------------------------------------------------------
  48. |
  49. | This URL is used by the console to properly generate URLs when using
  50. | the Artisan command line tool. You should set this to the root of
  51. | your application so that it is used when running Artisan tasks.
  52. |
  53. */
  54. 'url' => env('APP_URL', 'http://localhost'),
  55. 'code_url' => env('APP_CODE_URL', 'http://localhost/#/h5/sign-up'),
  56. /*
  57. |--------------------------------------------------------------------------
  58. | Application Timezone
  59. |--------------------------------------------------------------------------
  60. |
  61. | Here you may specify the default timezone for your application, which
  62. | will be used by the PHP date and date-time functions. We have gone
  63. | ahead and set this to a sensible default for you out of the box.
  64. |
  65. */
  66. 'timezone' => env('APP_TIMEZONE', 'PRC'),
  67. /*
  68. |--------------------------------------------------------------------------
  69. | Application Locale Configuration
  70. |--------------------------------------------------------------------------
  71. |
  72. | The application locale determines the default locale that will be used
  73. | by the translation service provider. You are free to set this value
  74. | to any of the locales which will be supported by the application.
  75. |
  76. */
  77. 'locale' => env('APP_LOCALE', 'en'),
  78. /*
  79. |--------------------------------------------------------------------------
  80. | Application Fallback Locale
  81. |--------------------------------------------------------------------------
  82. |
  83. | The fallback locale determines the locale to use when the current one
  84. | is not available. You may change the value to correspond to any of
  85. | the language folders that are provided through your application.
  86. |
  87. */
  88. 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
  89. /*
  90. |--------------------------------------------------------------------------
  91. | Encryption Key
  92. |--------------------------------------------------------------------------
  93. |
  94. | This key is used by the Illuminate encrypter service and should be set
  95. | to a random, 32 character string, otherwise these encrypted strings
  96. | will not be safe. Please do this before deploying an application!
  97. |
  98. */
  99. 'key' => env('APP_KEY'),
  100. 'cipher' => 'AES-256-CBC',
  101. ];