filesystem.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. return [
  3. // 默认磁盘
  4. 'default' => env('filesystem.driver', 'local'),
  5. // 磁盘列表
  6. 'disks' => [
  7. 'local' => [
  8. 'type' => 'local',
  9. 'root' => app()->getRootPath() . 'public/storage',
  10. ],
  11. // 更多的磁盘配置信息
  12. 'aliyun' => [
  13. 'type' => 'aliyun',
  14. 'accessId' => env('filesystem.aliyun_accessId',''),
  15. 'accessSecret' => env('filesystem.aliyun_accessSecret',''),
  16. 'bucket' => env('filesystem.aliyun_bucket',''),
  17. 'endpoint' => env('filesystem.aliyun_endpoint',''),
  18. 'url' => env('filesystem.aliyun_url',''),//不要斜杠结尾,此处为URL地址域名。
  19. ],
  20. 'qiniu' => [
  21. 'type' => 'qiniu',
  22. 'accessKey' => env('filesystem.qiniu_accessKey',''),
  23. 'secretKey' => env('filesystem.qiniu_secretKey',''),
  24. 'bucket' => env('filesystem.qiniu_bucket',''),
  25. 'url' => env('filesystem.qiniu_url',''),//不要斜杠结尾,此处为URL地址域名。
  26. ],
  27. 'qcloud' => [
  28. 'type' => 'qcloud',
  29. 'region' => env('filesystem.qcloud_region',''),//bucket 所属区域 英文
  30. 'appId' => env('filesystem.qcloud_appId',''), // 域名中数字部分
  31. 'secretId' => env('filesystem.qcloud_secretId',''),
  32. 'secretKey' => env('filesystem.qcloud_secretKey',''),
  33. 'bucket' => env('filesystem.qcloud_bucket',''),
  34. 'timeout' => 60,
  35. 'connect_timeout' => 60,
  36. 'cdn' => env('filesystem.qcloud_cdn',''),
  37. 'scheme' => 'https',
  38. 'read_from_cdn' => false,
  39. ]
  40. ],
  41. ];