filesystem.php 643 B

12345678910111213141516171819202122232425
  1. <?php
  2. return [
  3. // 默认磁盘
  4. 'default' => 'local',
  5. // 磁盘列表
  6. 'disks' => [
  7. 'local' => [
  8. 'type' => 'local',
  9. 'root' => app()->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'storage',
  10. ],
  11. 'public' => [
  12. // 磁盘类型
  13. 'type' => 'local',
  14. // 磁盘路径
  15. 'root' => app()->getRootPath() . 'public' . DIRECTORY_SEPARATOR . 'storage',
  16. // 磁盘路径对应的外部URL路径
  17. 'url' => '/storage',
  18. // 可见性
  19. 'visibility' => 'public',
  20. ],
  21. ],
  22. ];