You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Filesystem Disk
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you may specify the default filesystem disk that should be used
  9. | by the framework. The "local" disk, as well as a variety of cloud
  10. | based disks are available to your application for file storage.
  11. |
  12. */
  13. 'default' => env('FILESYSTEM_DISK', 'local'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Filesystem Disks
  17. |--------------------------------------------------------------------------
  18. |
  19. | Below you may configure as many filesystem disks as necessary, and you
  20. | may even configure multiple disks for the same driver. Examples for
  21. | most supported storage drivers are configured here for reference.
  22. |
  23. | Supported drivers: "local", "ftp", "sftp", "s3"
  24. |
  25. */
  26. 'disks' => [
  27. 'local' => [
  28. 'driver' => 'local',
  29. 'root' => storage_path('app/private'),
  30. 'serve' => true,
  31. 'throw' => false,
  32. ],
  33. 'public' => [
  34. 'driver' => 'local',
  35. 'root' => storage_path('app/public'),
  36. 'url' => env('APP_URL').'/storage',
  37. 'visibility' => 'public',
  38. 'throw' => false,
  39. ],
  40. 's3' => [
  41. 'driver' => 's3',
  42. 'key' => env('AWS_ACCESS_KEY_ID'),
  43. 'secret' => env('AWS_SECRET_ACCESS_KEY'),
  44. 'region' => env('AWS_DEFAULT_REGION'),
  45. 'bucket' => env('AWS_BUCKET'),
  46. 'url' => env('AWS_URL'),
  47. 'endpoint' => env('AWS_ENDPOINT'),
  48. 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
  49. 'throw' => false,
  50. // 'visibility' => 'public', // https://statamic.dev/assets#visibility
  51. ],
  52. 'assets' => [
  53. 'driver' => 'local',
  54. 'root' => public_path('assets'),
  55. 'url' => '/assets',
  56. 'visibility' => 'public',
  57. 'throw' => false,
  58. ],
  59. ],
  60. /*
  61. |--------------------------------------------------------------------------
  62. | Symbolic Links
  63. |--------------------------------------------------------------------------
  64. |
  65. | Here you may configure the symbolic links that will be created when the
  66. | `storage:link` Artisan command is executed. The array keys should be
  67. | the locations of the links and the values should be their targets.
  68. |
  69. */
  70. 'links' => [
  71. public_path('storage') => storage_path('app/public'),
  72. ],
  73. ];