filesystem.php 525 B

123456789101112131415161718192021
  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. 'password' => ''
  19. ];