app.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. 'name2' => env('APP_NAME2', 'Laravel'),
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Application Environment
  18. |--------------------------------------------------------------------------
  19. |
  20. | This value determines the "environment" your application is currently
  21. | running in. This may determine how you prefer to configure various
  22. | services the application utilizes. Set this in your ".env" file.
  23. |
  24. */
  25. 'env' => env('APP_ENV', 'production'),
  26. /*
  27. |--------------------------------------------------------------------------
  28. | Application Debug Mode
  29. |--------------------------------------------------------------------------
  30. |
  31. | When your application is in debug mode, detailed error messages with
  32. | stack traces will be shown on every error that occurs within your
  33. | application. If disabled, a simple generic error page is shown.
  34. |
  35. */
  36. 'debug' => (bool) env('APP_DEBUG', false),
  37. /*
  38. |--------------------------------------------------------------------------
  39. | Application URL
  40. |--------------------------------------------------------------------------
  41. |
  42. | This URL is used by the console to properly generate URLs when using
  43. | the Artisan command line tool. You should set this to the root of
  44. | the application so that it's available within Artisan commands.
  45. |
  46. */
  47. 'url' => env('APP_URL', 'http://localhost'),
  48. /*
  49. |--------------------------------------------------------------------------
  50. | Application Timezone
  51. |--------------------------------------------------------------------------
  52. |
  53. | Here you may specify the default timezone for your application, which
  54. | will be used by the PHP date and date-time functions. The timezone
  55. | is set to "UTC" by default as it is suitable for most use cases.
  56. |
  57. */
  58. 'timezone' => env('APP_TIMEZONE', 'Asia/Shanghai'),
  59. /*
  60. |--------------------------------------------------------------------------
  61. | Application Locale Configuration
  62. |--------------------------------------------------------------------------
  63. |
  64. | The application locale determines the default locale that will be used
  65. | by Laravel's translation / localization methods. This option can be
  66. | set to any locale for which you plan to have translation strings.
  67. |
  68. */
  69. 'locale' => env('APP_LOCALE', 'zh_CN'),
  70. 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'zh_CN'),
  71. 'faker_locale' => env('APP_FAKER_LOCALE', 'zh_CN'),
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Encryption Key
  75. |--------------------------------------------------------------------------
  76. |
  77. | This key is utilized by Laravel's encryption services and should be set
  78. | to a random, 32 character string to ensure that all encrypted values
  79. | are secure. You should do this prior to deploying the application.
  80. |
  81. */
  82. 'cipher' => 'AES-256-CBC',
  83. 'key' => env('APP_KEY'),
  84. 'previous_keys' => [
  85. ...array_filter(
  86. explode(',', env('APP_PREVIOUS_KEYS', ''))
  87. ),
  88. ],
  89. /*
  90. |--------------------------------------------------------------------------
  91. | Maintenance Mode Driver
  92. |--------------------------------------------------------------------------
  93. |
  94. | These configuration options determine the driver used to determine and
  95. | manage Laravel's "maintenance mode" status. The "cache" driver will
  96. | allow maintenance mode to be controlled across multiple machines.
  97. |
  98. | Supported drivers: "file", "cache"
  99. |
  100. */
  101. 'maintenance' => [
  102. 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
  103. 'store' => env('APP_MAINTENANCE_STORE', 'database'),
  104. ],
  105. /*
  106. |--------------------------------------------------------------------------
  107. | Autoloaded Service Providers
  108. |--------------------------------------------------------------------------
  109. |
  110. | The service providers listed here will be automatically loaded on the
  111. | request to your application. Feel free to add your own services to
  112. | this array to grant expanded functionality to your applications.
  113. |
  114. */
  115. 'providers' => [
  116. /*
  117. * Laravel Framework Service Providers...
  118. */
  119. Illuminate\Auth\AuthServiceProvider::class,
  120. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  121. Illuminate\Bus\BusServiceProvider::class,
  122. Illuminate\Cache\CacheServiceProvider::class,
  123. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  124. Illuminate\Cookie\CookieServiceProvider::class,
  125. Illuminate\Database\DatabaseServiceProvider::class,
  126. Illuminate\Encryption\EncryptionServiceProvider::class,
  127. Illuminate\Filesystem\FilesystemServiceProvider::class,
  128. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  129. Illuminate\Hashing\HashServiceProvider::class,
  130. Illuminate\Mail\MailServiceProvider::class,
  131. Illuminate\Notifications\NotificationServiceProvider::class,
  132. Illuminate\Pagination\PaginationServiceProvider::class,
  133. Illuminate\Pipeline\PipelineServiceProvider::class,
  134. Illuminate\Queue\QueueServiceProvider::class,
  135. Illuminate\Redis\RedisServiceProvider::class,
  136. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  137. Illuminate\Session\SessionServiceProvider::class,
  138. Illuminate\Translation\TranslationServiceProvider::class,
  139. Illuminate\Validation\ValidationServiceProvider::class,
  140. Illuminate\View\ViewServiceProvider::class,
  141. /*
  142. * Package Service Providers...
  143. */
  144. /*
  145. * Application Service Providers...
  146. */
  147. App\Providers\AppServiceProvider::class,
  148. App\Providers\EventServiceProvider::class,
  149. App\Providers\RouteServiceProvider::class,
  150. // UCore Command Service Provider
  151. UCore\Providers\CommandServiceProvider::class,
  152. // Admin 模块
  153. \App\Module\Admin\Providers\AdminServiceProvider::class,
  154. // Module Service Providers...
  155. # 用户模块
  156. App\Module\User\Providers\UserServiceProvider::class,
  157. # 资金模块
  158. App\Module\Fund\Providers\FundServiceProvider::class,
  159. # 短信模块
  160. App\Module\Sms\Providers\SmsServiceProvider::class,
  161. # Test模块
  162. App\Module\Test\Providers\TestServiceProvider::class,
  163. # China模块
  164. App\Module\China\Providers\ChinaServiceProvider::class,
  165. # Oauth
  166. App\Module\OAuth\OAuthServiceProvider::class,
  167. // GameItems 模块
  168. \App\Module\GameItems\Providers\GameItemsServiceProvider::class,
  169. // Game 模块
  170. \App\Module\Game\Providers\GameServiceProvider::class,
  171. // AppGame 模块
  172. \App\Module\AppGame\Providers\AppGameServiceProvider::class,
  173. // Task 模块
  174. \App\Module\Task\Providers\TaskServiceProvider::class,
  175. // Pet 模块
  176. \App\Module\Pet\Providers\PetServiceProvider::class,
  177. // Farm 模块
  178. \App\Module\Farm\Providers\FarmServiceProvider::class,
  179. // Point 模块
  180. \App\Module\Point\Providers\PointServiceProvider::class,
  181. // Shop 模块
  182. \App\Module\Shop\Providers\ShopServiceProvider::class,
  183. // Mex 模块
  184. \App\Module\Mex\Providers\MexServiceProvider::class,
  185. // OpenAPI 模块
  186. \App\Module\OpenAPI\Providers\OpenAPIServiceProvider::class,
  187. // ThirdParty 模块
  188. \App\Module\ThirdParty\Providers\ThirdPartyServiceProvider::class,
  189. // UrsPromotion 模块
  190. \App\Module\UrsPromotion\Providers\UrsPromotionServiceProvider::class,
  191. // Cleanup 模块
  192. \App\Module\Cleanup\CleanupServiceProvider::class,
  193. // ThirdParty 包
  194. \ThirdParty\Urs\UrsServiceProvider::class,
  195. // SQL日志服务提供者
  196. App\Providers\SqlLogServiceProvider::class,
  197. ],
  198. /*
  199. |--------------------------------------------------------------------------
  200. | Class Aliases
  201. |--------------------------------------------------------------------------
  202. |
  203. | This array of class aliases will be registered when this application
  204. | is started. However, feel free to register as many as you wish as
  205. | the aliases are "lazy" loaded so they don't hinder performance.
  206. |
  207. */
  208. 'aliases' => [],
  209. ];