larva / laravel-flysystem-kodo
This is a Flysystem adapter for the Qiniu Kodo.
2.0.1
2022-03-20 14:47 UTC
Requires
- php: ^8.0
- laravel/framework: ^9.0
- larva/flysystem-kodo: ^1.0
- league/flysystem: ^3.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-20 20:21:20 UTC
README
适用于 Laravel 的七牛 Kodo 适配器,完整支持七牛 Kodo 所有方法和操作。
安装
composer require larva/laravel-flysystem-kodo -vv
修改配置文件: config/filesystems.php
添加一个磁盘配置
'kodo' => [ 'driver' => 'kodo', 'access_key' => env('QINIU_ACCESS_KEY'), 'secret_key' => env('QINIU_SECRET_KEY'), 'bucket' => env('QINIU_BUCKET'), 'root' => env('QINIU_PREFIX'), // optional 'url' => env('QINIU_BUCKET_URL'), 'visibility' => 'private', ],
修改默认存储驱动
'default' => 'kodo'
使用
参见 Laravel wiki