app.php 8.1 KB

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