filesystem.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. // 默认磁盘
  13. 'default' => env('filesystem.driver', 'public'),
  14. // 磁盘列表
  15. 'disks' => [
  16. 'local' => [
  17. 'type' => 'local',
  18. 'root' => app()->getRuntimePath() . 'storage',
  19. ],
  20. 'public' => [
  21. // 磁盘类型
  22. 'type' => 'local',
  23. // 磁盘路径
  24. 'root' => app()->getRootPath() . 'public/uploads',
  25. // 磁盘路径对应的外部URL路径
  26. 'url' => '/uploads',
  27. // 可见性
  28. 'visibility' => 'public',
  29. ],
  30. // 更多的磁盘配置信息
  31. ],
  32. ];