filesystems.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?php
  2. if (env('APP_Framework',false) == 'platform') {
  3. $attachment = 'static/upload';
  4. } else {
  5. $attachment = '../../attachment';
  6. }
  7. return [
  8. /*
  9. |--------------------------------------------------------------------------
  10. | Default Filesystem Disk
  11. |--------------------------------------------------------------------------
  12. |
  13. | Here you may specify the default filesystem disk that should be used
  14. | by the framework. The "local" disk, as well as a variety of cloud
  15. | based disks are available to your application. Just store away!
  16. |
  17. */
  18. 'default' => 'local',
  19. /*
  20. |--------------------------------------------------------------------------
  21. | Default Cloud Filesystem Disk
  22. |--------------------------------------------------------------------------
  23. |
  24. | Many applications store files both locally and in the cloud. For this
  25. | reason, you may specify a default "cloud" driver here. This driver
  26. | will be bound as the Cloud disk implementation in the container.
  27. |
  28. */
  29. 'cloud' => 's3',
  30. /*
  31. |--------------------------------------------------------------------------
  32. | Filesystem Disks
  33. |--------------------------------------------------------------------------
  34. |
  35. | Here you may configure as many filesystem "disks" as you wish, and you
  36. | may even configure multiple disks of the same driver. Defaults have
  37. | been setup for each driver as an example of the required options.
  38. |
  39. | Supported Drivers: "local", "ftp", "s3", "rackspace"
  40. |
  41. */
  42. 'disks' => [
  43. 'local' => [
  44. 'driver' => 'local',
  45. 'root' => storage_path('app'),
  46. ],
  47. 'export'=> [
  48. 'driver' => 'local',
  49. 'root' => storage_path('exports'),
  50. ],
  51. //图片
  52. 'syst_images' => [
  53. //仅新框架用
  54. 'driver' => 'local',
  55. 'root' => base_path('static/upload/images/0/'.date('Y').'/'.date('m')),
  56. 'url' => 'images/0/'.date('Y').'/'.date('m'),
  57. 'visibility' => 'public',
  58. ],
  59. //图片
  60. 'newimages' => [
  61. 'driver' => 'local',
  62. 'root' => base_path($attachment . '/newimage'),
  63. 'url' => 'newimage',
  64. 'visibility' => 'public',
  65. ],
  66. //视频
  67. 'videos' => [
  68. 'driver' => 'local',
  69. 'root' => base_path($attachment . '/videos/0/'.date('Y').'/'.date('m')),
  70. 'url' => 'videos/0/'.date('Y').'/'.date('m'),
  71. 'visibility' => 'public',
  72. ],
  73. //音频
  74. 'audios' => [
  75. 'driver' => 'local',
  76. 'root' => base_path($attachment . '/audios/0/'.date('Y').'/'.date('m')),
  77. 'url' => 'audios/0/'.date('Y').'/'.date('m'),
  78. 'visibility' => 'public',
  79. ],
  80. //企业微信好友列表的logo
  81. 'customer_increase_logo' => [
  82. 'driver' => 'local',
  83. 'root' => base_path($attachment . '/customer_increase_logo/'.date('Y').'/'.date('m')),
  84. 'url' => 'customer_increase_logo/'.date('Y').'/'.date('m'),
  85. 'visibility' => 'public',
  86. ],
  87. //聚合cps的apk文件
  88. 'cps_apk' => [
  89. 'driver' => 'local',
  90. 'root' => base_path($attachment . '/cps_apk/0/'.date('Y').'/'.date('m')),
  91. 'url' => 'cps_apk/0/'.date('Y').'/'.date('m'),
  92. 'visibility' => 'public',
  93. ],
  94. //消费券联名的签约文件
  95. 'coupon_store_agreement' => [
  96. 'driver' => 'local',
  97. 'root' => base_path($attachment . '/coupon_store_agreement/'.date('Y').'/'.date('m')),
  98. 'url' => 'coupon_store_agreement/'.date('Y').'/'.date('m'),
  99. 'visibility' => 'public',
  100. ],
  101. 'public' => [
  102. 'driver' => 'local',
  103. 'root' => storage_path('app/public'),
  104. 'url' => env('APP_URL').'/storage',
  105. 'visibility' => 'public',
  106. ],
  107. 'avatar' => [
  108. 'driver' => 'local',
  109. 'root' => base_path($attachment .'/avatar'),
  110. 'url' => env('APP_URL').'/attachment/avatar',
  111. 'visibility' => 'public',
  112. ],
  113. 'image' => [
  114. 'driver' => 'local',
  115. 'root' => base_path($attachment . '/image'),
  116. 'url' => 'image',
  117. 'visibility' => 'public',
  118. ],
  119. // 商品相册 批量上传商品图片 文件保存路径
  120. 'photoimage' => [
  121. 'driver' => 'local',
  122. 'root' => base_path($attachment . '/photoimage'),
  123. 'url' => env('APP_URL').'photoimage',
  124. 'visibility' => 'public',
  125. ],
  126. // 保单pdf文件上传
  127. 'insurance' => [
  128. 'driver' => 'local',
  129. 'root' => storage_path('app/insurance'),
  130. 'url' => env('APP_URL').'/storage/app/insurance',
  131. ],
  132. 'cert' => [
  133. 'driver' => 'local',
  134. 'root' => storage_path('cert'),
  135. ],
  136. 'pem' => [
  137. 'driver' => 'local',
  138. 'root' => storage_path('pem'),
  139. ],
  140. // 批量发货上传excel文件保存路径
  141. 'recharge' => [
  142. 'driver' => 'local',
  143. 'root' => storage_path('app/public/recharge'),
  144. ],
  145. 'ownerOrderImport' => [
  146. 'driver' => 'local',
  147. 'root' => storage_path('plugins/owner-order-import'),
  148. ],
  149. // 批量发货上传excel文件保存路径
  150. 'orderexcel' => [
  151. 'driver' => 'local',
  152. 'root' => storage_path('app/public/orderexcel'),
  153. ],
  154. // 海粉上传excel文件保存
  155. 'levelexcel' => [
  156. 'driver' => 'local',
  157. 'root' => storage_path('app/public/levelexcel'),
  158. ],
  159. // 批量卡密上传excel文件保存路径
  160. 'virtualcard' => [
  161. 'driver' => 'local',
  162. 'root' => storage_path('app/public/virtualcard'),
  163. ],
  164. // 网约车 批量上传excel文件保存路径
  165. 'netcar' => [
  166. 'driver' => 'local',
  167. 'root' => storage_path('app/public/netcar'),
  168. ],
  169. // 易宝支付图片上传
  170. 'yop' => [
  171. 'driver' => 'local',
  172. 'root' => storage_path('app/public/yop'),
  173. 'url' => env('APP_URL').'/storage/public/yop',
  174. ],
  175. // 易宝支付图片上传
  176. 'business_card' => [
  177. 'driver' => 'local',
  178. 'root' => storage_path('app/public/business_card'),
  179. 'url' => env('APP_URL').'/storage/public/business_card',
  180. ],
  181. //直播海报图片上传
  182. 'room_poster' => [
  183. 'driver' => 'local',
  184. 'root' => storage_path('app/public/room_post'),
  185. 'url' => env('APP_URL').'/storage/public/room_post',
  186. ],
  187. //龙存管插件文件上传路径
  188. 'dragon_deposit' => [
  189. 'driver' => 'local',
  190. 'root' => storage_path('app/dragon-deposit'),
  191. 'url' => env('APP_URL').'/storage/app/dragon-deposit',
  192. ],
  193. 'upload' => [
  194. 'driver' => 'local',
  195. 'root' => storage_path('app/public/avatar'),
  196. 'url' => env('APP_URL').'/storage/public/avatar',
  197. 'visibility' => 'public',
  198. ],
  199. 'banner' => [
  200. 'driver' => 'local',
  201. 'root' => storage_path('app/public/banner'),
  202. 'url' => env('APP_URL').'/storage/public/banner',
  203. 'visibility' => 'public',
  204. ],
  205. //淘宝CSV实例
  206. 'taobaoCSV' => [
  207. 'driver' => 'local',
  208. 'root'=> base_path('plugins/goods-assistant/storage/examples'),
  209. 'url' => env('APP_URL').'plugins/goods-assistant/storage/examples',
  210. 'visibility' => 'public',
  211. ],
  212. //淘宝CSV上传
  213. 'taobaoCSVupload' => [
  214. 'driver' => 'local',
  215. 'root'=> base_path('plugins/goods-assistant/storage/upload'),
  216. 'url' => env('APP_URL').'plugins/goods-assistant/storage/upload',
  217. 'visibility' => 'public',
  218. ],
  219. 's3' => [
  220. 'driver' => 's3',
  221. 'key' => env('AWS_KEY'),
  222. 'secret' => env('AWS_SECRET'),
  223. 'region' => env('AWS_REGION'),
  224. 'bucket' => env('AWS_BUCKET'),
  225. ],
  226. /*'yun_sign'=>[
  227. 'driver' => 'local',
  228. 'root'=> base_path('plugins/yun-sign/static'),
  229. 'url' => env('APP_URL').'plugins/yun-sign/static',
  230. 'visibility' => 'public',
  231. ],*/
  232. 'yun_sign'=>[
  233. 'driver' => 'local',
  234. 'root' => base_path('static/yun-sign'),
  235. 'url' => '/static/yun-sign/',
  236. 'visibility' => 'public',
  237. ],
  238. 'shop_esign'=>[
  239. 'driver' => 'local',
  240. 'root' => base_path('static/shop-esign'),
  241. 'url' => '/static/shop-esign/',
  242. 'visibility' => 'public',
  243. ],
  244. ],
  245. ];