app.php 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?php
  2. use Illuminate\Support\Facades\Facade;
  3. return [
  4. 'usdt_address' => env('USDT_ADDRESS',''),
  5. 'trx_private_key' => env('TRX_PRIVATE_KEY',''),
  6. 'tron_network' => env('TRON_NETWORK','main'),
  7. // 第三方支付配置
  8. 'tree_payment_merchant_id' => env('TREE_PAYMENT_MERCHANT_ID',''),
  9. 'tree_payment_secret' => env('TREE_PAYMENT_SECRET',''),
  10. // 第三方收款配置
  11. 'tree_pay_mch_id' => env('TREE_PAY_MCH_ID',''),
  12. 'tree_pay_key' => env('TREE_PAY_MCH_KEY',''),
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Application Name
  16. |--------------------------------------------------------------------------
  17. |
  18. | This value is the name of your application. This value is used when the
  19. | framework needs to place the application's name in a notification or
  20. | any other location as required by the application or its packages.
  21. |
  22. */
  23. 'name' => env('APP_NAME', 'Laravel'),
  24. /*
  25. |--------------------------------------------------------------------------
  26. | Application Environment
  27. |--------------------------------------------------------------------------
  28. |
  29. | This value determines the "environment" your application is currently
  30. | running in. This may determine how you prefer to configure various
  31. | services the application utilizes. Set this in your ".env" file.
  32. |
  33. */
  34. 'env' => env('APP_ENV', 'production'),
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Application Debug Mode
  38. |--------------------------------------------------------------------------
  39. |
  40. | When your application is in debug mode, detailed error messages with
  41. | stack traces will be shown on every error that occurs within your
  42. | application. If disabled, a simple generic error page is shown.
  43. |
  44. */
  45. 'debug' => (bool)env('APP_DEBUG', false),
  46. /*
  47. |--------------------------------------------------------------------------
  48. | Application URL
  49. |--------------------------------------------------------------------------
  50. |
  51. | This URL is used by the console to properly generate URLs when using
  52. | the Artisan command line tool. You should set this to the root of
  53. | your application so that it is used when running Artisan tasks.
  54. |
  55. */
  56. // 'url' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . (isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:'localhost'),
  57. 'url' => env('APP_URL', ''),
  58. 'asset_url' => env('ASSET_URL'),
  59. 'jwt_secret' => env('JWT_SECRET', '881FrcXs'),
  60. 'jwt_exp' => env('JWT_EXP', 86400),
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Application Timezone
  64. |--------------------------------------------------------------------------
  65. |
  66. | Here you may specify the default timezone for your application, which
  67. | will be used by the PHP date and date-time functions. We have gone
  68. | ahead and set this to a sensible default for you out of the box.
  69. |
  70. */
  71. //'timezone' => 'UTC',
  72. 'timezone' => 'Asia/Shanghai',
  73. /*
  74. |--------------------------------------------------------------------------
  75. | Application Locale Configuration
  76. |--------------------------------------------------------------------------
  77. |
  78. | The application locale determines the default locale that will be used
  79. | by the translation service provider. You are free to set this value
  80. | to any of the locales which will be supported by the application.
  81. |
  82. */
  83. // 'locale' => 'en',
  84. // 'locale' => 'zh-CN',
  85. 'locale' => isset($_REQUEST['lang']) && $_REQUEST['lang'] == 'en' ? 'en' : 'zh-CN',
  86. /*
  87. |--------------------------------------------------------------------------
  88. | Application Fallback Locale
  89. |--------------------------------------------------------------------------
  90. |
  91. | The fallback locale determines the locale to use when the current one
  92. | is not available. You may change the value to correspond to any of
  93. | the language folders that are provided through your application.
  94. |
  95. */
  96. 'fallback_locale' => 'en',
  97. /*
  98. |--------------------------------------------------------------------------
  99. | Faker Locale
  100. |--------------------------------------------------------------------------
  101. |
  102. | This locale will be used by the Faker PHP library when generating fake
  103. | data for your database seeds. For example, this will be used to get
  104. | localized telephone numbers, street address information and more.
  105. |
  106. */
  107. 'faker_locale' => 'en_US',
  108. /*
  109. |--------------------------------------------------------------------------
  110. | Encryption Key
  111. |--------------------------------------------------------------------------
  112. |
  113. | This key is used by the Illuminate encrypter service and should be set
  114. | to a random, 32 character string, otherwise these encrypted strings
  115. | will not be safe. Please do this before deploying an application!
  116. |
  117. */
  118. 'key' => env('APP_KEY'),
  119. 'cipher' => 'AES-256-CBC',
  120. /*
  121. |--------------------------------------------------------------------------
  122. | Maintenance Mode Driver
  123. |--------------------------------------------------------------------------
  124. |
  125. | These configuration options determine the driver used to determine and
  126. | manage Laravel's "maintenance mode" status. The "cache" driver will
  127. | allow maintenance mode to be controlled across multiple machines.
  128. |
  129. | Supported drivers: "file", "cache"
  130. |
  131. */
  132. 'maintenance' => [
  133. 'driver' => 'file',
  134. // 'store' => 'redis',
  135. ],
  136. /*
  137. |--------------------------------------------------------------------------
  138. | Autoloaded Service Providers
  139. |--------------------------------------------------------------------------
  140. |
  141. | The service providers listed here will be automatically loaded on the
  142. | request to your application. Feel free to add your own services to
  143. | this array to grant expanded functionality to your applications.
  144. |
  145. */
  146. 'providers' => [
  147. /*
  148. * Laravel Framework Service Providers...
  149. */
  150. Illuminate\Auth\AuthServiceProvider::class,
  151. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  152. Illuminate\Bus\BusServiceProvider::class,
  153. Illuminate\Cache\CacheServiceProvider::class,
  154. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  155. Illuminate\Cookie\CookieServiceProvider::class,
  156. Illuminate\Database\DatabaseServiceProvider::class,
  157. Illuminate\Encryption\EncryptionServiceProvider::class,
  158. Illuminate\Filesystem\FilesystemServiceProvider::class,
  159. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  160. Illuminate\Hashing\HashServiceProvider::class,
  161. Illuminate\Mail\MailServiceProvider::class,
  162. Illuminate\Notifications\NotificationServiceProvider::class,
  163. Illuminate\Pagination\PaginationServiceProvider::class,
  164. Illuminate\Pipeline\PipelineServiceProvider::class,
  165. Illuminate\Queue\QueueServiceProvider::class,
  166. Illuminate\Redis\RedisServiceProvider::class,
  167. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  168. Illuminate\Session\SessionServiceProvider::class,
  169. Illuminate\Translation\TranslationServiceProvider::class,
  170. Illuminate\Validation\ValidationServiceProvider::class,
  171. Illuminate\View\ViewServiceProvider::class,
  172. /*
  173. * Package Service Providers...
  174. */
  175. /*
  176. * Application Service Providers...
  177. */
  178. App\Providers\AppServiceProvider::class,
  179. App\Providers\AuthServiceProvider::class,
  180. // App\Providers\BroadcastServiceProvider::class,
  181. App\Providers\EventServiceProvider::class,
  182. App\Providers\RouteServiceProvider::class,
  183. ],
  184. /*
  185. |--------------------------------------------------------------------------
  186. | Class Aliases
  187. |--------------------------------------------------------------------------
  188. |
  189. | This array of class aliases will be registered when this application
  190. | is started. However, feel free to register as many as you wish as
  191. | the aliases are "lazy" loaded so they don't hinder performance.
  192. |
  193. */
  194. 'aliases' => Facade::defaultAliases()->merge([
  195. // 'ExampleClass' => App\Example\ExampleClass::class,
  196. ])->toArray(),
  197. ];