filesystem.php 783 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. return [
  3. // 默认磁盘
  4. 'default' => env('filesystem.driver', 'public'),
  5. // 磁盘列表
  6. 'disks' => [
  7. 'local' => [
  8. 'type' => 'local',
  9. 'root' => app()->getRuntimePath() . 'storage',
  10. ],
  11. 'certificate' => [
  12. 'type' => 'local',
  13. 'root' => app()->getRuntimePath() . 'certificate',
  14. ],
  15. 'public' => [
  16. // 磁盘类型
  17. 'type' => 'local',
  18. // 磁盘路径
  19. 'root' => app()->getRootPath() . 'public/uploads',
  20. // 磁盘路径对应的外部URL路径
  21. 'url' => '/storage',
  22. // 可见性
  23. 'visibility' => 'public',
  24. ],
  25. // 更多的磁盘配置信息
  26. ],
  27. ];