filesystems.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 LARAVEL研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: laravel开发员 <laravel.qq.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Default Filesystem Disk
  15. |--------------------------------------------------------------------------
  16. |
  17. | Here you may specify the default filesystem disk that should be used
  18. | by the framework. The "local" disk, as well as a variety of cloud
  19. | based disks are available to your application. Just store away!
  20. |
  21. */
  22. 'default' => env('FILESYSTEM_DRIVER', 'local'),
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Default Cloud Filesystem Disk
  26. |--------------------------------------------------------------------------
  27. |
  28. | Many applications store files both locally and in the cloud. For this
  29. | reason, you may specify a default "cloud" driver here. This driver
  30. | will be bound as the Cloud disk implementation in the container.
  31. |
  32. */
  33. 'cloud' => env('FILESYSTEM_CLOUD', 's3'),
  34. /*
  35. |--------------------------------------------------------------------------
  36. | Filesystem Disks
  37. |--------------------------------------------------------------------------
  38. |
  39. | Here you may configure as many filesystem "disks" as you wish, and you
  40. | may even configure multiple disks of the same driver. Defaults have
  41. | been setup for each driver as an example of the required options.
  42. |
  43. | Supported Drivers: "local", "ftp", "sftp", "s3"
  44. |
  45. */
  46. 'disks' => [
  47. 'local' => [
  48. 'driver' => 'local',
  49. 'root' => storage_path('app'),
  50. ],
  51. 'public' => [
  52. 'driver' => 'local',
  53. 'root' => storage_path('app/public'),
  54. 'url' => env('APP_URL').'/storage',
  55. 'visibility' => 'public',
  56. ],
  57. 's3' => [
  58. 'driver' => 's3',
  59. 'key' => env('AWS_ACCESS_KEY_ID'),
  60. 'secret' => env('AWS_SECRET_ACCESS_KEY'),
  61. 'region' => env('AWS_DEFAULT_REGION'),
  62. 'bucket' => env('AWS_BUCKET'),
  63. 'url' => env('AWS_URL'),
  64. 'endpoint' => env('AWS_ENDPOINT'),
  65. ],
  66. ],
  67. /*
  68. |--------------------------------------------------------------------------
  69. | Symbolic Links
  70. |--------------------------------------------------------------------------
  71. |
  72. | Here you may configure the symbolic links that will be created when the
  73. | `storage:link` Artisan command is executed. The array keys should be
  74. | the locations of the links and the values should be their targets.
  75. |
  76. */
  77. 'links' => [
  78. public_path('storage') => storage_path('app/public'),
  79. ],
  80. ];