jekhy / ucloud-ufile-storage
ucloud-ufile-storage for laravel
1.2.2
2020-06-10 02:14 UTC
Requires
- php: ^7.1.3
- guzzlehttp/guzzle: ^6.0
- illuminate/support: 5.*
- league/flysystem: ^1.0
Requires (Dev)
- phpunit/phpunit: ^4.0
README
Base on:
- https://docs.ucloud.cn/api/ufile-api/
- https://github.com/xujif/ucloud-ufile-sdk
- https://github.com/xujif/ucloud-ufile-storage
Usage:
register the Jekhy\UcloudUfileStorage\UfileServiceProvider::class;
in your app configuration file:
'providers' => [ // Other service providers... Jekhy\UcloudUfileStorage\UfileServiceProvider::class, ],
config/filesystems.php
'disks' => [
'yourDiskName'=>[
'driver' => 'ucloud-ufile',
'bucket'=>'xxx',
'public_key'=>'xxx',
'secret_key'=>'xxx',
'suffix'=>'.ufile.ucloud.cn',
'prefix'=>'',
],
]