app.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Application Name
  6. |--------------------------------------------------------------------------
  7. |
  8. | This value is the name of your application, which will be used when the
  9. | framework needs to place the application's name in a notification or
  10. | other UI elements where an application name needs to be displayed.
  11. |
  12. */
  13. 'name' => env('APP_NAME', 'Laravel'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Application Environment
  17. |--------------------------------------------------------------------------
  18. |
  19. | This value determines the "environment" your application is currently
  20. | running in. This may determine how you prefer to configure various
  21. | services the application utilizes. Set this in your ".env" file.
  22. |
  23. */
  24. 'env' => env('APP_ENV', 'production'),
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Application Debug Mode
  28. |--------------------------------------------------------------------------
  29. |
  30. | When your application is in debug mode, detailed error messages with
  31. | stack traces will be shown on every error that occurs within your
  32. | application. If disabled, a simple generic error page is shown.
  33. |
  34. */
  35. 'debug' => (bool)env('APP_DEBUG', false),
  36. 'providers' => [
  37. /*
  38. * Laravel Framework Service Providers...
  39. */
  40. Illuminate\Auth\AuthServiceProvider::class,
  41. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  42. Illuminate\Bus\BusServiceProvider::class,
  43. Illuminate\Cache\CacheServiceProvider::class,
  44. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  45. Illuminate\Cookie\CookieServiceProvider::class,
  46. Illuminate\Database\DatabaseServiceProvider::class,
  47. Illuminate\Encryption\EncryptionServiceProvider::class,
  48. Illuminate\Filesystem\FilesystemServiceProvider::class,
  49. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  50. Illuminate\Hashing\HashServiceProvider::class,
  51. Illuminate\Mail\MailServiceProvider::class,
  52. Illuminate\Notifications\NotificationServiceProvider::class,
  53. Illuminate\Pagination\PaginationServiceProvider::class,
  54. Illuminate\Pipeline\PipelineServiceProvider::class,
  55. Illuminate\Queue\QueueServiceProvider::class,
  56. Illuminate\Redis\RedisServiceProvider::class,
  57. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  58. Illuminate\Session\SessionServiceProvider::class,
  59. Illuminate\Translation\TranslationServiceProvider::class,
  60. Illuminate\Validation\ValidationServiceProvider::class,
  61. Illuminate\View\ViewServiceProvider::class,
  62. /*
  63. * Package Service Providers...
  64. */
  65. /*
  66. * Application Service Providers...
  67. */
  68. App\Providers\AppServiceProvider::class,
  69. App\Providers\AuthServiceProvider::class,
  70. // App\Providers\BroadcastServiceProvider::class,
  71. App\Providers\EventServiceProvider::class,
  72. App\Providers\RouteServiceProvider::class,
  73. ],
  74. /*
  75. |--------------------------------------------------------------------------
  76. | Application URL
  77. |--------------------------------------------------------------------------
  78. |
  79. | This URL is used by the console to properly generate URLs when using
  80. | the Artisan command line tool. You should set this to the root of
  81. | the application so that it's available within Artisan commands.
  82. |
  83. */
  84. 'url' => env('APP_URL', 'http://localhost'),
  85. 'image_url' => env('IMAGE_URL', null),
  86. 'image_url1' => env('IMAGE_URL1', 'http://127.0.0.1'),
  87. /*
  88. |--------------------------------------------------------------------------
  89. | Application Timezone
  90. |--------------------------------------------------------------------------
  91. |
  92. | Here you may specify the default timezone for your application, which
  93. | will be used by the PHP date and date-time functions. The timezone
  94. | is set to "UTC" by default as it is suitable for most use cases.
  95. |
  96. */
  97. 'timezone' => env('APP_TIMEZONE', 'Asia/Shanghai'),
  98. /*
  99. |--------------------------------------------------------------------------
  100. | Application Locale Configuration
  101. |--------------------------------------------------------------------------
  102. |
  103. | The application locale determines the default locale that will be used
  104. | by Laravel's translation / localization methods. This option can be
  105. | set to any locale for which you plan to have translation strings.
  106. |
  107. */
  108. 'locale' => env('APP_LOCALE', 'zh_CN'),
  109. 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
  110. 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
  111. /*
  112. |--------------------------------------------------------------------------
  113. | Encryption Key
  114. |--------------------------------------------------------------------------
  115. |
  116. | This key is utilized by Laravel's encryption services and should be set
  117. | to a random, 32 character string to ensure that all encrypted values
  118. | are secure. You should do this prior to deploying the application.
  119. |
  120. */
  121. 'cipher' => 'AES-256-CBC',
  122. 'key' => env('APP_KEY'),
  123. 'previous_keys' => [
  124. ...array_filter(
  125. explode(',', env('APP_PREVIOUS_KEYS', ''))
  126. ),
  127. ],
  128. /*
  129. |--------------------------------------------------------------------------
  130. | Maintenance Mode Driver
  131. |--------------------------------------------------------------------------
  132. |
  133. | These configuration options determine the driver used to determine and
  134. | manage Laravel's "maintenance mode" status. The "cache" driver will
  135. | allow maintenance mode to be controlled across multiple machines.
  136. |
  137. | Supported drivers: "file", "cache"
  138. |
  139. */
  140. 'maintenance' => [
  141. 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
  142. 'store' => env('APP_MAINTENANCE_STORE', 'database'),
  143. ],
  144. ];