Просмотр файла config/filesystems.php

Размер файла: 2.15Kb
  1. <?php
  2.  
  3. return [
  4.  
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Default Filesystem Disk
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here you may specify the default filesystem disk that should be used
  11. | by the framework. The "local" disk, as well as a variety of cloud
  12. | based disks are available to your application. Just store away!
  13. |
  14. */
  15.  
  16. 'default' => env('FILESYSTEM_DRIVER', 'local'),
  17.  
  18. /*
  19. |--------------------------------------------------------------------------
  20. | Filesystem Disks
  21. |--------------------------------------------------------------------------
  22. |
  23. | Here you may configure as many filesystem "disks" as you wish, and you
  24. | may even configure multiple disks of the same driver. Defaults have
  25. | been setup for each driver as an example of the required options.
  26. |
  27. | Supported Drivers: "local", "ftp", "sftp", "s3"
  28. |
  29. */
  30.  
  31. 'disks' => [
  32.  
  33. 'local' => [
  34. 'driver' => 'local',
  35. 'root' => storage_path('app'),
  36. ],
  37.  
  38. 'public' => [
  39. 'driver' => 'local',
  40. 'root' => storage_path('app/public'),
  41. 'url' => env('APP_URL').'/storage',
  42. 'visibility' => 'public',
  43. ],
  44.  
  45. 's3' => [
  46. 'driver' => 's3',
  47. 'key' => env('AWS_ACCESS_KEY_ID'),
  48. 'secret' => env('AWS_SECRET_ACCESS_KEY'),
  49. 'region' => env('AWS_DEFAULT_REGION'),
  50. 'bucket' => env('AWS_BUCKET'),
  51. 'url' => env('AWS_URL'),
  52. 'endpoint' => env('AWS_ENDPOINT'),
  53. ],
  54.  
  55. ],
  56.  
  57. /*
  58. |--------------------------------------------------------------------------
  59. | Symbolic Links
  60. |--------------------------------------------------------------------------
  61. |
  62. | Here you may configure the symbolic links that will be created when the
  63. | `storage:link` Artisan command is executed. The array keys should be
  64. | the locations of the links and the values should be their targets.
  65. |
  66. */
  67.  
  68. 'links' => [
  69. public_path('storage') => storage_path('app/public'),
  70. ],
  71.  
  72. ];