app.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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. 'name' => 'Yunshop',
  13. /**
  14. * 微擎模块名
  15. */
  16. 'module_name' => 'yun_shop',
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Application Environment
  20. |--------------------------------------------------------------------------
  21. |
  22. | This value determines the "environment" your application is currently
  23. | running in. This may determine how you prefer to configure various
  24. | services your application utilizes. Set this in your ".env" file.
  25. |
  26. */
  27. 'env' => env('APP_ENV', 'production'),
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Application Debug Mode
  31. |--------------------------------------------------------------------------
  32. |
  33. | When your application is in debug mode, detailed error messages with
  34. | stack traces will be shown on every error that occurs within your
  35. | application. If disabled, a simple generic error page is shown.
  36. |
  37. */
  38. 'debug' => env('APP_DEBUG', false),
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Application URL
  42. |--------------------------------------------------------------------------
  43. |
  44. | This URL is used by the console to properly generate URLs when using
  45. | the Artisan command line tool. You should set this to the root of
  46. | your application so that it is used when running Artisan tasks.
  47. |
  48. */
  49. 'url' => env('APP_URL', 'http://localhost'),
  50. /*
  51. |--------------------------------------------------------------------------
  52. | Application Timezone
  53. |--------------------------------------------------------------------------
  54. |
  55. | Here you may specify the default timezone for your application, which
  56. | will be used by the PHP date and date-time functions. We have gone
  57. | ahead and set this to a sensible default for you out of the box.
  58. |
  59. */
  60. 'timezone' => 'PRC',
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Application Locale Configuration
  64. |--------------------------------------------------------------------------
  65. |
  66. | The application locale determines the default locale that will be used
  67. | by the translation service provider. You are free to set this value
  68. | to any of the locales which will be supported by the application.
  69. |
  70. */
  71. 'locale' => 'zh-CN',
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Application Fallback Locale
  75. |--------------------------------------------------------------------------
  76. |
  77. | The fallback locale determines the locale to use when the current one
  78. | is not available. You may change the value to correspond to any of
  79. | the language folders that are provided through your application.
  80. |
  81. */
  82. 'fallback_locale' => 'zh-CN',
  83. /*
  84. |--------------------------------------------------------------------------
  85. | Encryption Key
  86. |--------------------------------------------------------------------------
  87. |
  88. | This key is used by the Illuminate encrypter service and should be set
  89. | to a random, 32 character string, otherwise these encrypted strings
  90. | will not be safe. Please do this before deploying an application!
  91. |
  92. */
  93. 'key' => env('APP_KEY', 'base64:gkli8hs6Q9DbSR/cQw5DNaRBF0jtvf1iGaXc6ja0ZGA='),
  94. 'cipher' => 'AES-256-CBC',
  95. /*
  96. |--------------------------------------------------------------------------
  97. | Logging Configuration
  98. |--------------------------------------------------------------------------
  99. |
  100. | Here you may configure the log settings for your application. Out of
  101. | the box, Laravel uses the Monolog PHP logging library. This gives
  102. | you a variety of powerful log handlers / formatters to utilize.
  103. |
  104. | Available Settings: "single", "daily", "syslog", "errorlog"
  105. |
  106. */
  107. /*
  108. |--------------------------------------------------------------------------
  109. | Autoloaded Service Providers
  110. |--------------------------------------------------------------------------
  111. |
  112. | The service providers listed here will be automatically loaded on the
  113. | request to your application. Feel free to add your own services to
  114. | this array to grant expanded functionality to your applications.
  115. |
  116. */
  117. 'providers' => [
  118. /*
  119. * Laravel Framework Service Providers...
  120. */
  121. Illuminate\Auth\AuthServiceProvider::class,
  122. //Illuminate\Broadcasting\BroadcastServiceProvider::class,
  123. \app\common\providers\BusServiceProvider::class,
  124. Illuminate\Cache\CacheServiceProvider::class,
  125. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  126. Illuminate\Cookie\CookieServiceProvider::class,
  127. \app\framework\Database\DatabaseServiceProvider::class,
  128. Illuminate\Encryption\EncryptionServiceProvider::class,
  129. Illuminate\Filesystem\FilesystemServiceProvider::class,
  130. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  131. Illuminate\Hashing\HashServiceProvider::class,
  132. //Illuminate\Mail\MailServiceProvider::class,
  133. //Illuminate\Notifications\NotificationServiceProvider::class,
  134. Illuminate\Pagination\PaginationServiceProvider::class,
  135. Illuminate\Pipeline\PipelineServiceProvider::class,
  136. \app\common\providers\QueueServiceProvider::class,
  137. \app\framework\Redis\RedisServiceProvider::class,
  138. //Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  139. Illuminate\Session\SessionServiceProvider::class,
  140. Illuminate\Translation\TranslationServiceProvider::class,
  141. Illuminate\Validation\ValidationServiceProvider::class,
  142. Illuminate\View\ViewServiceProvider::class,
  143. // 商城管理
  144. app\common\providers\ShopProvider::class,
  145. /*
  146. * Application Service Providers...
  147. */
  148. app\common\providers\AppServiceProvider::class,
  149. \app\common\providers\YunShopServiceProvider::class,
  150. app\common\providers\PluginServiceProvider::class,
  151. // app\common\providers\BroadcastServiceProvider::class,
  152. app\common\providers\EventServiceProvider::class,
  153. app\common\providers\RouteServiceProvider::class,
  154. app\common\providers\PaymentServiceProvider::class,
  155. /**
  156. * Third-party libraries
  157. */
  158. Laracasts\Flash\FlashServiceProvider::class, //提示消息
  159. iscms\Alisms\AlidayuServiceProvider::class,//阿里大鱼
  160. Maatwebsite\Excel\ExcelServiceProvider::class,//Excel组合
  161. //表单
  162. Collective\Html\HtmlServiceProvider::class,
  163. Watson\BootstrapForm\BootstrapFormServiceProvider::class,
  164. //表单end
  165. Ixudra\Curl\CurlServiceProvider::class,
  166. //二维码
  167. \app\common\modules\qrCode\QrCodeServiceProvider::class,
  168. //计划任务
  169. \app\common\providers\CronServiceProvider::class,
  170. //上传
  171. zgldh\UploadManager\UploadManagerServiceProvider::class,
  172. //拼音
  173. Overtrue\LaravelPinyin\ServiceProvider::class,
  174. // 邮件
  175. \Illuminate\Mail\MailServiceProvider::class,
  176. ],
  177. /*
  178. |--------------------------------------------------------------------------
  179. | Class Aliases
  180. |--------------------------------------------------------------------------
  181. |
  182. | This array of class aliases will be registered when this application
  183. | is started. However, feel free to register as many as you wish as
  184. | the aliases are "lazy" loaded so they don't hinder performance.
  185. |
  186. */
  187. 'aliases' => [
  188. 'App' => Illuminate\Support\Facades\App::class,
  189. 'Artisan' => Illuminate\Support\Facades\Artisan::class,
  190. 'Auth' => Illuminate\Support\Facades\Auth::class,
  191. 'Blade' => Illuminate\Support\Facades\Blade::class,
  192. 'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
  193. 'Bus' => Illuminate\Support\Facades\Bus::class,
  194. 'Cache' => Illuminate\Support\Facades\Cache::class,
  195. 'Config' => Illuminate\Support\Facades\Config::class,
  196. 'Cookie' => Illuminate\Support\Facades\Cookie::class,
  197. 'Crypt' => Illuminate\Support\Facades\Crypt::class,
  198. 'DB' => Illuminate\Support\Facades\DB::class,
  199. 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
  200. 'Event' => Illuminate\Support\Facades\Event::class,
  201. 'File' => Illuminate\Support\Facades\File::class,
  202. 'Gate' => Illuminate\Support\Facades\Gate::class,
  203. 'Hash' => Illuminate\Support\Facades\Hash::class,
  204. 'Lang' => Illuminate\Support\Facades\Lang::class,
  205. 'Log' => \app\framework\Support\Facades\Log::class,
  206. 'Mail' => Illuminate\Support\Facades\Mail::class,
  207. 'Notification' => Illuminate\Support\Facades\Notification::class,
  208. 'Password' => Illuminate\Support\Facades\Password::class,
  209. 'Queue' => Illuminate\Support\Facades\Queue::class,
  210. 'Redirect' => Illuminate\Support\Facades\Redirect::class,
  211. 'Redis' => Illuminate\Support\Facades\Redis::class,
  212. 'Request' => Illuminate\Support\Facades\Request::class,
  213. 'Response' => Illuminate\Support\Facades\Response::class,
  214. 'Route' => Illuminate\Support\Facades\Route::class,
  215. 'Schema' => Illuminate\Support\Facades\Schema::class,
  216. 'Session' => Illuminate\Support\Facades\Session::class,
  217. 'Storage' => Illuminate\Support\Facades\Storage::class,
  218. 'URL' => Illuminate\Support\Facades\URL::class,
  219. 'Validator' => Illuminate\Support\Facades\Validator::class,
  220. 'View' => Illuminate\Support\Facades\View::class,
  221. 'Setting' => app\common\facades\Setting::class,//设置
  222. 'Option' => app\common\facades\Option::class,
  223. 'Utils' => app\common\services\Utils::class,
  224. 'Excel' => Maatwebsite\Excel\Facades\Excel::class,//Excel 组件
  225. //表单生成
  226. 'Form' => Collective\Html\FormFacade::class,
  227. 'HTML' => Collective\Html\HtmlFacade::class,
  228. 'BootForm' => Watson\BootstrapForm\Facades\BootstrapForm::class,
  229. //表单生成end
  230. 'Curl' => Ixudra\Curl\Facades\Curl::class,
  231. 'QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class,
  232. //php短信发送
  233. 'PhpSms' => Toplan\PhpSms\Facades\Sms::class,
  234. 'SmsManager' => Toplan\Sms\Facades\SmsManager::class,
  235. //微信接口封装
  236. 'wechat' => Overtrue\LaravelWechat\Facade::class,
  237. //拼音
  238. 'Pinyin' => Overtrue\LaravelPinyin\Facades\Pinyin::class,
  239. ],
  240. 'pay_type' => [
  241. 1 => '微信',
  242. 2 => '支付宝',
  243. 3 => '余额'
  244. ],
  245. 'express' => [
  246. 'KDN' => [
  247. 'reqURL' => 'http://api.kdniao.com/api/dist'
  248. ]
  249. ],
  250. 'isWeb' => env('IS_WEB', '/web/index.php'),
  251. 'webPath' => env('ROOT_PATH', '/addons/yun_shop'),
  252. 'extendDir' => env('EXTEND_DIR', 'addons'),
  253. 'global' => [],
  254. 'sys_global' => [],
  255. 'framework' => env('APP_Framework', false),
  256. 'APP_Framework' => env('APP_Framework', false),
  257. 'PLUGIN_MARKET_SOURCE' => env('PLUGIN_MARKET_SOURCE'),
  258. // 'AUTH_PASSWORD' => env('PLUGIN_MARKET_SOURCE', ''),
  259. 'AUTH_PASSWORD' => env('AUTH_PASSWORD', ''),
  260. 'redis_default_database' => env('REDIS_DEFAULT_DATABASE'),
  261. 'redis_cache_database' => env('REDIS_CACHE_DATABASE'),
  262. ];