Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将配置文件 放在 filesystems.php 文件中 提示 driver 找不到。 #11

Closed
gyp719 opened this issue Aug 19, 2020 · 5 comments
Closed

Comments

@gyp719
Copy link

gyp719 commented Aug 19, 2020

将配置文件 放在 filesystems.php 文件中 提示 driver 找不到。 driver 应该设置为什么?

@overtrue
Copy link
Owner

我没办法仅凭“将配置文件 放在 filesystems.php 文件中 ” 想像出你是怎么配置的哈,建议脱敏贴出来

@gyp719
Copy link
Author

gyp719 commented Aug 19, 2020


        'cos' => [
            'driver' => 'flysystem-cos',  
            'region'          => 'ap-nanjing',
            'credentials'     => [
                'appId'     => 1300314322, // 域名中数字部分 1300314322
                'secretId'  => '',
                'secretKey' => '',
            ],
            'bucket'          => ',
            'timeout'         => 60,
            'connect_timeout' => 60,
            'cdn'             => '您的 CDN 域名',
            'scheme'          => 'https',
            'read_from_cdn'   => false,
        ],

driver 的值

@overtrue
Copy link
Owner

overtrue commented Aug 19, 2020

你这是自创的?文档没写清楚吗?https://github.com/overtrue/laravel-filesystem-cos
image

GitHub
Tencent Cloud COS storage for Laravel based on overtrue/flysystem-cos. - overtrue/laravel-filesystem-cos

@gyp719
Copy link
Author

gyp719 commented Aug 19, 2020

之前用的 是 composer require overtrue/flysystem-cos

使用 laravel 用 laravel 的 cos包, 文档:
感谢 overtrue 的指导

@overtrue
Copy link
Owner

overtrue commented Aug 19, 2020

overtrue/flysystem-cos 这个包是为 PHP 使用的,没有 driver 参数:https://github.com/overtrue/flysystem-cos#usage

GitHub
💾 Flysystem adapter for the Qcloud COS storage. - overtrue/flysystem-cos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants