app.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. /*
  56. |--------------------------------------------------------------------------
  57. | Application Timezone
  58. |--------------------------------------------------------------------------
  59. |
  60. | Here you may specify the default timezone for your application, which
  61. | will be used by the PHP date and date-time functions. We have gone
  62. | ahead and set this to a sensible default for you out of the box.
  63. |
  64. */
  65. 'timezone' => env('APP_TIMEZONE', 'UTC'),
  66. /*
  67. |--------------------------------------------------------------------------
  68. | Application Locale Configuration
  69. |--------------------------------------------------------------------------
  70. |
  71. | The application locale determines the default locale that will be used
  72. | by the translation service provider. You are free to set this value
  73. | to any of the locales which will be supported by the application.
  74. |
  75. */
  76. 'locale' => env('APP_LOCALE', 'en'),
  77. /*
  78. |--------------------------------------------------------------------------
  79. | Application Fallback Locale
  80. |--------------------------------------------------------------------------
  81. |
  82. | The fallback locale determines the locale to use when the current one
  83. | is not available. You may change the value to correspond to any of
  84. | the language folders that are provided through your application.
  85. |
  86. */
  87. 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
  88. /*
  89. |--------------------------------------------------------------------------
  90. | Encryption Key
  91. |--------------------------------------------------------------------------
  92. |
  93. | This key is used by the Illuminate encrypter service and should be set
  94. | to a random, 32 character string, otherwise these encrypted strings
  95. | will not be safe. Please do this before deploying an application!
  96. |
  97. */
  98. 'key' => env('APP_KEY'),
  99. 'cipher' => 'AES-256-CBC',
  100. ];