hlf_513 / ufile-storage
ufile storage for lumen
2.1.1
2017-07-29 07:35 UTC
Requires
- php: >=5.3.0
- hlf_513/ucloud-ufile-sdk: ~1.0
- illuminate/support: 5.*
- league/flysystem: ^1.0
README
ucloud ufile storage for lumen base on https://docs.ucloud.cn/api/ufile-api/index
config/filesystems.php
'disks' => [ 'ufile' => [ 'driver' => 'ucloud-ufile', 'bucket' => env('UFILE_BUCKET'), 'suffix' => env('UFILE_SUFFIX'), //.ufile.ucloud.cn 'public_key'=> env('UFILE_ACCESS_KEY'), //AccessKey 'secret_key'=> env('UFILE_SECRET_KEY'), //SecretKey ] ],
demo
$file = Storage::disk('public')->get('file.txt'); Storage::disk('ufile')->put('file.name', $file);