app.php 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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', 'maswear'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Application Environment
  17. |--------------------------------------------------------------------------
  18. |
  19. | 此值确定应用程序当前运行的“环境”。
  20. | 可能决定您喜欢如何配置应用程序使用的各种服务。在“.env”文件中设置。
  21. |
  22. */
  23. 'env' => env('APP_ENV', 'production'),
  24. /*
  25. |--------------------------------------------------------------------------
  26. | Application Debug Mode
  27. |--------------------------------------------------------------------------
  28. |
  29. | When your application is in debug mode, detailed error messages with
  30. | stack traces will be shown on every error that occurs within your
  31. | application. If disabled, a simple generic error page is shown.
  32. |
  33. */
  34. 'debug' => (bool) env('APP_DEBUG', false),
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Application URL
  38. |--------------------------------------------------------------------------
  39. |
  40. | 控制台使用此URL在使用Artisan命令行工具时正确生成URL。
  41. | 应将其设置为应用程序的根目录,以便在运行Artisan任务时使用。
  42. |
  43. */
  44. 'url' => env('APP_URL',''),
  45. 'h5_url' => env('H5_URL',''),
  46. 'local_url' => env('LOCAL_URL',''),
  47. 'asset_url' => env('ASSET_URL', null),
  48. /*
  49. |--------------------------------------------------------------------------
  50. | Application Platform Code
  51. |--------------------------------------------------------------------------
  52. |
  53. | 获取当前平台编码
  54. |
  55. */
  56. 'platform_code'=> env('PLATFORM_CODE', ''),
  57. /*
  58. |--------------------------------------------------------------------------
  59. | Application Timezone
  60. |--------------------------------------------------------------------------
  61. |
  62. | Here you may specify the default timezone for your application, which
  63. | will be used by the PHP date and date-time functions. We have gone
  64. | ahead and set this to a sensible default for you out of the box.
  65. |
  66. */
  67. 'timezone' => 'Asia/Shanghai',
  68. /*
  69. |--------------------------------------------------------------------------
  70. | Application Locale Configuration
  71. |--------------------------------------------------------------------------
  72. |
  73. | The application locale determines the default locale that will be used
  74. | by the translation service provider. You are free to set this value
  75. | to any of the locales which will be supported by the application.
  76. |
  77. */
  78. 'locale' => 'en',
  79. /*
  80. |--------------------------------------------------------------------------
  81. | Application Fallback Locale
  82. |--------------------------------------------------------------------------
  83. |
  84. | The fallback locale determines the locale to use when the current one
  85. | is not available. You may change the value to correspond to any of
  86. | the language folders that are provided through your application.
  87. |
  88. */
  89. 'fallback_locale' => 'en',
  90. /*
  91. |--------------------------------------------------------------------------
  92. | Faker Locale
  93. |--------------------------------------------------------------------------
  94. |
  95. | This locale will be used by the Faker PHP library when generating fake
  96. | data for your database seeds. For example, this will be used to get
  97. | localized telephone numbers, street address information and more.
  98. |
  99. */
  100. 'faker_locale' => 'en_US',
  101. /*
  102. |--------------------------------------------------------------------------
  103. | Encryption Key
  104. |--------------------------------------------------------------------------
  105. |
  106. | This key is used by the Illuminate encrypter service and should be set
  107. | to a random, 32 character string, otherwise these encrypted strings
  108. | will not be safe. Please do this before deploying an application!
  109. |
  110. */
  111. 'key' => env('APP_KEY','base64:n4pAxrgybm67B78fRhuaZzvioRSWj29Ivyhtb4SeCuo='),
  112. 'cipher' => 'AES-256-CBC',
  113. /*
  114. |--------------------------------------------------------------------------
  115. | Autoloaded Service Providers
  116. |--------------------------------------------------------------------------
  117. |
  118. | The service providers listed here will be automatically loaded on the
  119. | request to your application. Feel free to add your own services to
  120. | this array to grant expanded functionality to your applications.
  121. |
  122. */
  123. 'providers' => [
  124. /*
  125. * Laravel Framework Service Providers...
  126. */
  127. Illuminate\Auth\AuthServiceProvider::class,
  128. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  129. Illuminate\Bus\BusServiceProvider::class,
  130. Illuminate\Cache\CacheServiceProvider::class,
  131. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  132. Illuminate\Cookie\CookieServiceProvider::class,
  133. Illuminate\Database\DatabaseServiceProvider::class,
  134. Illuminate\Encryption\EncryptionServiceProvider::class,
  135. Illuminate\Filesystem\FilesystemServiceProvider::class,
  136. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  137. Illuminate\Hashing\HashServiceProvider::class,
  138. Illuminate\Mail\MailServiceProvider::class,
  139. Illuminate\Notifications\NotificationServiceProvider::class,
  140. Illuminate\Pagination\PaginationServiceProvider::class,
  141. Illuminate\Pipeline\PipelineServiceProvider::class,
  142. Illuminate\Queue\QueueServiceProvider::class,
  143. Illuminate\Redis\RedisServiceProvider::class,
  144. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  145. Illuminate\Session\SessionServiceProvider::class,
  146. Illuminate\Translation\TranslationServiceProvider::class,
  147. Illuminate\Validation\ValidationServiceProvider::class,
  148. Illuminate\View\ViewServiceProvider::class,
  149. /*
  150. * Package Service Providers...
  151. */
  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. Vinkla\Hashids\HashidsServiceProvider::class,
  161. ],
  162. /*
  163. |--------------------------------------------------------------------------
  164. | Class Aliases
  165. |--------------------------------------------------------------------------
  166. |
  167. | This array of class aliases will be registered when this application
  168. | is started. However, feel free to register as many as you wish as
  169. | the aliases are "lazy" loaded so they don't hinder performance.
  170. |
  171. */
  172. 'aliases' => [
  173. 'App' => Illuminate\Support\Facades\App::class,
  174. 'Arr' => Illuminate\Support\Arr::class,
  175. 'Artisan' => Illuminate\Support\Facades\Artisan::class,
  176. 'Auth' => Illuminate\Support\Facades\Auth::class,
  177. 'Blade' => Illuminate\Support\Facades\Blade::class,
  178. 'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
  179. 'Bus' => Illuminate\Support\Facades\Bus::class,
  180. 'Cache' => Illuminate\Support\Facades\Cache::class,
  181. 'Config' => Illuminate\Support\Facades\Config::class,
  182. 'Cookie' => Illuminate\Support\Facades\Cookie::class,
  183. 'Crypt' => Illuminate\Support\Facades\Crypt::class,
  184. 'Date' => Illuminate\Support\Facades\Date::class,
  185. 'DB' => Illuminate\Support\Facades\DB::class,
  186. 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
  187. 'Event' => Illuminate\Support\Facades\Event::class,
  188. 'File' => Illuminate\Support\Facades\File::class,
  189. 'Gate' => Illuminate\Support\Facades\Gate::class,
  190. 'Hash' => Illuminate\Support\Facades\Hash::class,
  191. 'Http' => Illuminate\Support\Facades\Http::class,
  192. 'Lang' => Illuminate\Support\Facades\Lang::class,
  193. 'Log' => Illuminate\Support\Facades\Log::class,
  194. 'Mail' => Illuminate\Support\Facades\Mail::class,
  195. 'Notification' => Illuminate\Support\Facades\Notification::class,
  196. 'Password' => Illuminate\Support\Facades\Password::class,
  197. 'Queue' => Illuminate\Support\Facades\Queue::class,
  198. 'Redirect' => Illuminate\Support\Facades\Redirect::class,
  199. 'Redis' => Illuminate\Support\Facades\Redis::class,
  200. 'Request' => Illuminate\Support\Facades\Request::class,
  201. 'Response' => Illuminate\Support\Facades\Response::class,
  202. 'Route' => Illuminate\Support\Facades\Route::class,
  203. 'Schema' => Illuminate\Support\Facades\Schema::class,
  204. 'Session' => Illuminate\Support\Facades\Session::class,
  205. 'Storage' => Illuminate\Support\Facades\Storage::class,
  206. 'Str' => Illuminate\Support\Str::class,
  207. 'URL' => Illuminate\Support\Facades\URL::class,
  208. 'Validator' => Illuminate\Support\Facades\Validator::class,
  209. 'View' => Illuminate\Support\Facades\View::class,
  210. 'Hashids' => Vinkla\Hashids\Facades\Hashids::class,
  211. ],
  212. // 默认图
  213. 'no_pic' =>'images/default/null.jpg',
  214. // 订单限流
  215. 'orders_create_limit_px' => env('APP_ORDERS_CREATE_LIMIT_PX',0),
  216. 'orders_create_limit_vl' => env('APP_ORDERS_CREATE_LIMIT_VL',0)
  217. ];