rizki_widiyana

filesystem

May 28th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.14 KB | None | 0 0
  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' => 'local',
  17.  
  18.     /*
  19.     |--------------------------------------------------------------------------
  20.     | Default Cloud Filesystem Disk
  21.     |--------------------------------------------------------------------------
  22.     |
  23.     | Many applications store files both locally and in the cloud. For this
  24.     | reason, you may specify a default "cloud" driver here. This driver
  25.     | will be bound as the Cloud disk implementation in the container.
  26.     |
  27.     */
  28.  
  29.     'cloud' => 's3',
  30.  
  31.     /*
  32.     |--------------------------------------------------------------------------
  33.     | Filesystem Disks
  34.     |--------------------------------------------------------------------------
  35.     |
  36.     | Here you may configure as many filesystem "disks" as you wish, and you
  37.     | may even configure multiple disks of the same driver. Defaults have
  38.     | been setup for each driver as an example of the required options.
  39.     |
  40.     | Supported Drivers: "local", "ftp", "s3", "rackspace"
  41.     |
  42.     */
  43.  
  44.     'disks' => [
  45.         'foto' => [
  46.             'driver' => 'local',
  47.             'root' => public_path('fotoupload'),
  48.         ],
  49.  
  50.         'local' => [
  51.             'driver' => 'local',
  52.             'root' => storage_path('app'),
  53.         ],
  54.  
  55.         'public' => [
  56.             'driver' => 'local',
  57.             'root' => storage_path('app/public'),
  58.             'url' => env('APP_URL').'/storage',
  59.             'visibility' => 'public',
  60.         ],
  61.  
  62.         's3' => [
  63.             'driver' => 's3',
  64.             'key' => env('AWS_KEY'),
  65.             'secret' => env('AWS_SECRET'),
  66.             'region' => env('AWS_REGION'),
  67.             'bucket' => env('AWS_BUCKET'),
  68.         ],
  69.  
  70.     ],
  71.  
  72. ];
Add Comment
Please, Sign In to add comment