app.php 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Application Name
  6. |--------------------------------------------------------------------------
  7. |
  8. | This value is the name of your application. This value is used when the
  9. | framework needs to place the application's name in a notification or
  10. | any other location as required by the application or its packages.
  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 your 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' => env('APP_DEBUG', false),
  36. /*
  37. |--------------------------------------------------------------------------
  38. | Application URL
  39. |--------------------------------------------------------------------------
  40. |
  41. | This URL is used by the console to properly generate URLs when using
  42. | the Artisan command line tool. You should set this to the root of
  43. | your application so that it is used when running Artisan tasks.
  44. |
  45. */
  46. 'url' => env('APP_URL', 'http://localhost'),
  47. 'pocket_url' => env('POCKET_URL', 'http://localhost'),
  48. 'api_url' => env('API_URL', 'http://localhost'),
  49. /*
  50. |--------------------------------------------------------------------------
  51. | Application Timezone
  52. |--------------------------------------------------------------------------
  53. |
  54. | Here you may specify the default timezone for your application, which
  55. | will be used by the PHP date and date-time functions. We have gone
  56. | ahead and set this to a sensible default for you out of the box.
  57. |
  58. */
  59. 'timezone' => 'Asia/Shanghai',
  60. /*
  61. |--------------------------------------------------------------------------
  62. | Application Locale Configuration
  63. |--------------------------------------------------------------------------
  64. |
  65. | The application locale determines the default locale that will be used
  66. | by the translation service provider. You are free to set this value
  67. | to any of the locales which will be supported by the application.
  68. |
  69. */
  70. 'locale' => 'zh_CN',
  71. /*
  72. |--------------------------------------------------------------------------
  73. | Application Fallback Locale
  74. |--------------------------------------------------------------------------
  75. |
  76. | The fallback locale determines the locale to use when the current one
  77. | is not available. You may change the value to correspond to any of
  78. | the language folders that are provided through your application.
  79. |
  80. */
  81. 'fallback_locale' => 'en',
  82. /*
  83. |--------------------------------------------------------------------------
  84. | Encryption Key
  85. |--------------------------------------------------------------------------
  86. |
  87. | This key is used by the Illuminate encrypter service and should be set
  88. | to a random, 32 character string, otherwise these encrypted strings
  89. | will not be safe. Please do this before deploying an application!
  90. |
  91. */
  92. 'key' => env('APP_KEY'),
  93. 'cipher' => 'AES-256-CBC',
  94. /*
  95. |--------------------------------------------------------------------------
  96. | Logging Configuration
  97. |--------------------------------------------------------------------------
  98. |
  99. | Here you may configure the log settings for your application. Out of
  100. | the box, Laravel uses the Monolog PHP logging library. This gives
  101. | you a variety of powerful log handlers / formatters to utilize.
  102. |
  103. | Available Settings: "single", "daily", "syslog", "errorlog"
  104. |
  105. */
  106. 'log' => env('APP_LOG', 'single'),
  107. 'log_level' => env('APP_LOG_LEVEL', 'debug'),
  108. 'log_max_files' => env('APP_LOG_MAX_FILES', 7),
  109. /*
  110. |--------------------------------------------------------------------------
  111. | Autoloaded Service Providers
  112. |--------------------------------------------------------------------------
  113. |
  114. | The service providers listed here will be automatically loaded on the
  115. | request to your application. Feel free to add your own services to
  116. | this array to grant expanded functionality to your applications.
  117. |
  118. */
  119. 'providers' => [
  120. /*
  121. * Laravel Framework Service Providers...
  122. */
  123. Illuminate\Auth\AuthServiceProvider::class,
  124. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  125. Illuminate\Bus\BusServiceProvider::class,
  126. Illuminate\Cache\CacheServiceProvider::class,
  127. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  128. Illuminate\Cookie\CookieServiceProvider::class,
  129. Illuminate\Database\DatabaseServiceProvider::class,
  130. Illuminate\Encryption\EncryptionServiceProvider::class,
  131. Illuminate\Filesystem\FilesystemServiceProvider::class,
  132. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  133. Illuminate\Hashing\HashServiceProvider::class,
  134. Illuminate\Mail\MailServiceProvider::class,
  135. Illuminate\Notifications\NotificationServiceProvider::class,
  136. Illuminate\Pagination\PaginationServiceProvider::class,
  137. Illuminate\Pipeline\PipelineServiceProvider::class,
  138. Illuminate\Queue\QueueServiceProvider::class,
  139. Illuminate\Redis\RedisServiceProvider::class,
  140. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  141. Illuminate\Session\SessionServiceProvider::class,
  142. Illuminate\Translation\TranslationServiceProvider::class,
  143. Illuminate\Validation\ValidationServiceProvider::class,
  144. Illuminate\View\ViewServiceProvider::class,
  145. /*
  146. * Package Service Providers...
  147. */
  148. Ixudra\Curl\CurlServiceProvider::class,
  149. Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
  150. Jormin\DDoc\DDocServiceProvider::class,
  151. Sentry\SentryLaravel\SentryLaravelServiceProvider::class,
  152. /*
  153. * Application Service Providers...
  154. */
  155. App\Providers\AppServiceProvider::class,
  156. App\Providers\AuthServiceProvider::class,
  157. // App\Providers\BroadcastServiceProvider::class,
  158. App\Providers\EventServiceProvider::class,
  159. App\Providers\RouteServiceProvider::class,
  160. ],
  161. /*
  162. |--------------------------------------------------------------------------
  163. | Class Aliases
  164. |--------------------------------------------------------------------------
  165. |
  166. | This array of class aliases will be registered when this application
  167. | is started. However, feel free to register as many as you wish as
  168. | the aliases are "lazy" loaded so they don't hinder performance.
  169. |
  170. */
  171. 'aliases' => [
  172. 'App' => Illuminate\Support\Facades\App::class,
  173. 'Artisan' => Illuminate\Support\Facades\Artisan::class,
  174. 'Auth' => Illuminate\Support\Facades\Auth::class,
  175. 'Blade' => Illuminate\Support\Facades\Blade::class,
  176. 'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
  177. 'Bus' => Illuminate\Support\Facades\Bus::class,
  178. 'Cache' => Illuminate\Support\Facades\Cache::class,
  179. 'Config' => Illuminate\Support\Facades\Config::class,
  180. 'Cookie' => Illuminate\Support\Facades\Cookie::class,
  181. 'Crypt' => Illuminate\Support\Facades\Crypt::class,
  182. 'DB' => Illuminate\Support\Facades\DB::class,
  183. 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
  184. 'Event' => Illuminate\Support\Facades\Event::class,
  185. 'File' => Illuminate\Support\Facades\File::class,
  186. 'Gate' => Illuminate\Support\Facades\Gate::class,
  187. 'Hash' => Illuminate\Support\Facades\Hash::class,
  188. 'Lang' => Illuminate\Support\Facades\Lang::class,
  189. 'Log' => Illuminate\Support\Facades\Log::class,
  190. 'Mail' => Illuminate\Support\Facades\Mail::class,
  191. 'Notification' => Illuminate\Support\Facades\Notification::class,
  192. 'Password' => Illuminate\Support\Facades\Password::class,
  193. 'Queue' => Illuminate\Support\Facades\Queue::class,
  194. 'Redirect' => Illuminate\Support\Facades\Redirect::class,
  195. 'Redis' => Illuminate\Support\Facades\Redis::class,
  196. 'Request' => Illuminate\Support\Facades\Request::class,
  197. 'Response' => Illuminate\Support\Facades\Response::class,
  198. 'Route' => Illuminate\Support\Facades\Route::class,
  199. 'Schema' => Illuminate\Support\Facades\Schema::class,
  200. 'Session' => Illuminate\Support\Facades\Session::class,
  201. 'Storage' => Illuminate\Support\Facades\Storage::class,
  202. 'URL' => Illuminate\Support\Facades\URL::class,
  203. 'Validator' => Illuminate\Support\Facades\Validator::class,
  204. 'View' => Illuminate\Support\Facades\View::class,
  205. 'Curl' => Ixudra\Curl\Facades\Curl::class,
  206. 'JWTAuth' => Tymon\JWTAuth\Facades\JWTAuth::class,
  207. 'JWTFactory' => Tymon\JWTAuth\Facades\JWTFactory::class,
  208. 'ApiException' => App\Exceptions\ApiException::class,
  209. 'ChuanglanSms' => App\Facades\ChuanglanSmsFacade::class,
  210. 'AliSms' => App\Facades\AliSmsFacade::class,
  211. 'Sentry' => Sentry\SentryLaravel\SentryFacade::class,
  212. 'WeChat' => \App\Services\WeChat\WeChat::class,
  213. ],
  214. ];