filesystem.php 523 B

1234567891011121314151617181920
  1. <?php
  2. use think\facade\Env;
  3. return [
  4. 'default' => Env::get('filesystem.driver', 'public'),
  5. 'disks' => [
  6. 'local' => [
  7. 'type' => 'local',
  8. 'root' => app()->getRuntimePath() . 'storage',
  9. ],
  10. 'public' => [
  11. 'type' => 'local',
  12. 'root' => app()->getRootPath() . 'public/uploads',
  13. 'url' => '/uploads',
  14. 'visibility' => 'public',
  15. ],
  16. // 更多的磁盘配置信息
  17. ],
  18. ];