filesystems.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. 'photo_thumbnail_max_side' => (int) env('PHOTO_THUMBNAIL_MAX_SIDE', 150),
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Filesystem Disks
  18. |--------------------------------------------------------------------------
  19. |
  20. | Below you may configure as many filesystem disks as necessary, and you
  21. | may even configure multiple disks for the same driver. Examples for
  22. | most supported storage drivers are configured here for reference.
  23. |
  24. | Supported drivers: "local", "ftp", "sftp", "s3"
  25. |
  26. */
  27. 'disks' => [
  28. 'local' => [
  29. 'driver' => 'local',
  30. 'root' => storage_path('app/private'),
  31. 'serve' => true,
  32. 'throw' => false,
  33. ],
  34. 'base' => [
  35. 'driver' => 'local',
  36. 'root' => base_path('/'),
  37. 'throw' => false,
  38. ],
  39. 'public' => [
  40. 'driver' => 'local',
  41. 'root' => storage_path('app/public'),
  42. 'url' => env('APP_URL').'/storage',
  43. 'visibility' => 'public',
  44. 'throw' => false,
  45. ],
  46. 's3' => [
  47. 'driver' => 's3',
  48. 'key' => env('AWS_ACCESS_KEY_ID'),
  49. 'secret' => env('AWS_SECRET_ACCESS_KEY'),
  50. 'region' => env('AWS_DEFAULT_REGION'),
  51. 'bucket' => env('AWS_BUCKET'),
  52. 'url' => env('AWS_URL'),
  53. 'endpoint' => env('AWS_ENDPOINT'),
  54. 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
  55. 'throw' => false,
  56. ],
  57. 'upload' => [
  58. 'driver' => 'local',
  59. 'root' => storage_path('upload'),
  60. 'serve' => true,
  61. 'throw' => false,
  62. ],
  63. ],
  64. /*
  65. |--------------------------------------------------------------------------
  66. | Symbolic Links
  67. |--------------------------------------------------------------------------
  68. |
  69. | Here you may configure the symbolic links that will be created when the
  70. | `storage:link` Artisan command is executed. The array keys should be
  71. | the locations of the links and the values should be their targets.
  72. |
  73. */
  74. 'links' => [
  75. public_path('storage') => storage_path('app/public'),
  76. ],
  77. ];