| 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 | |||||
| 46 | 'local' => [ |
||||
| 47 | 'driver' => 'local', |
||||
| 48 | 'root' => storage_path('app'), |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 49 | ], |
||||
| 50 | |||||
| 51 | 'public' => [ |
||||
| 52 | 'driver' => 'local', |
||||
| 53 | 'root' => storage_path('app/public'), |
||||
| 54 | 'url' => env('APP_URL').'/storage', |
||||
|
0 ignored issues
–
show
The function
env was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 55 | 'visibility' => 'public', |
||||
| 56 | ], |
||||
| 57 | |||||
| 58 | 's3' => [ |
||||
| 59 | 'driver' => 's3', |
||||
| 60 | 'key' => env('AWS_KEY'), |
||||
| 61 | 'secret' => env('AWS_SECRET'), |
||||
| 62 | 'region' => env('AWS_REGION'), |
||||
| 63 | 'bucket' => env('AWS_BUCKET'), |
||||
| 64 | ], |
||||
| 65 | |||||
| 66 | 'cosv5' => [ |
||||
| 67 | 'driver' => 'cosv5', |
||||
| 68 | 'region' => env('COSV5_REGION', 'cn-east'), |
||||
| 69 | 'credentials' => [ |
||||
| 70 | 'appId' => env('COSV5_APP_ID'), |
||||
| 71 | 'secretId' => env('COSV5_SECRET_ID'), |
||||
| 72 | 'secretKey' => env('COSV5_SECRET_KEY'), |
||||
| 73 | 'token' => env('COSV5_TOKEN'), |
||||
| 74 | ], |
||||
| 75 | 'timeout' => env('COSV5_TIMEOUT', 60), |
||||
| 76 | 'connect_timeout' => env('COSV5_CONNECT_TIMEOUT', 60), |
||||
| 77 | 'bucket' => env('COSV5_BUCKET'), |
||||
| 78 | 'cdn' => env('COSV5_CDN'), |
||||
| 79 | 'scheme' => env('COSV5_SCHEME', 'https'), |
||||
| 80 | 'read_from_cdn' => env('COSV5_READ_FROM_CDN', false), |
||||
| 81 | 'cdn_key' => env('COSV5_CDN_KEY'), |
||||
| 82 | 'encrypt' => env('COSV5_ENCRYPT', false), |
||||
| 83 | ], |
||||
| 84 | |||||
| 85 | ], |
||||
| 86 | |||||
| 87 | ]; |
||||
| 88 |