filesystem.php 1015 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. return [
  3. // 默认磁盘
  4. 'default' => env('filesystem.driver', 'local'),
  5. // 磁盘列表
  6. 'disks' => [
  7. 'local' => [
  8. 'type' => 'local',
  9. 'root' => app()->getRuntimePath() . 'storage',
  10. ],
  11. 'public' => [
  12. // 磁盘类型
  13. 'type' => 'local',
  14. // 磁盘路径
  15. 'root' => app()->getRootPath() . 'public/storage',
  16. // 磁盘路径对应的外部URL路径
  17. 'url' => '/storage',
  18. // 可见性
  19. 'visibility' => 'public',
  20. ],
  21. 'aliyun' => [
  22. 'type' => 'aliyun',
  23. 'accessId' => 'LTAI4G1xGunUnwkgq48jFWi9',
  24. 'accessSecret' => '17PK5dY7WnLJR1ejgsopTUBUOzS05S',
  25. 'bucket' => 'ahwgh',
  26. 'endpoint' => 'oss-cn-hangzhou.aliyuncs.com',
  27. 'url' => 'http://oss-cn-hangzhou.aliyuncs.com',
  28. ],
  29. // 更多的磁盘配置信息
  30. ],
  31. ];