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