zuitu/ufile-storage

ufile storage for lumen

2.0.9 2017-07-22 01:22 UTC

This package is auto-updated.

Last update: 2020-07-17 10:58:22 UTC


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);