Downloads
Stars
Version
Laravel QingStor 文件上传系统,基于青云官方SDK。 推荐使用laravel-upload-manager进行整合。
composer require cdxmj/laravel-qingstor-storage
配置青云的API Key和Secret
// 在config/filesystems.php disks数组添加如下代码
'qingstor' => [
'driver' => 'QingStor',
'bucket' => 'My Bucket',
'zone' => 'My Zone',
'access_key_id' => 'Access ID', // 青云App Key
'secret_access_key' => 'Access Secret', //青云App Secret
'domain' => 'src.xxx.com',
'protocol' => 'http', // 服务使用的协议,如需使用 http,在此配置 http
],
\Storage::put($path, $content);
\Storage::disk('qingstor')->put($path, $content);