app.php 8.5 KB

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