Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 2b53547

Browse files
committed
update readme
1 parent 0fe993e commit 2b53547

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

README.md

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -59,42 +59,16 @@ $ composer require "overtrue/laravel-ueditor:~1.0"
5959

6060
如果你想使用七牛云储存,需要进行下面几个简单的操作:
6161

62-
1.配置 `config/ueditor.php` 的 `disk` 为 `qiniu`:
62+
1.安装和配置 [laravel-filesystem-qiniu](https://github.com/overtrue/laravel-filesystem-qiniu)
6363

64-
```php
65-
'disk' => 'qiniu'
66-
```
67-
68-
2.在 `config/filesystems.php` 添加下面的配置:
64+
2.配置 `config/ueditor.php` 的 `disk` 为 `qiniu`:
6965

7066
```php
71-
's3' => [
72-
'driver' => 's3',
73-
'key' => env('AWS_KEY'),
74-
'secret' => env('AWS_SECRET'),
75-
'region' => env('AWS_REGION'),
76-
'bucket' => env('AWS_BUCKET'),
77-
],
78-
79-
// 下面是添加的配置
80-
81-
'qiniu' => [
82-
'protocol' => 'http', // 域名对于的协议 http 或 https,默认 http
83-
'bucket' => env('QINIU_BUCKET_NAME'), // 七牛存储空间名字(bucket name),推荐使用公开空间
84-
'domain' => env('QINIU_BUCKET_DOMAIN'), // 七牛分配的域名
85-
'key' => env('QINIU_ACCESS_KEY'),
86-
'secret' => env('QINIU_SECRET_KEY'),
87-
],
67+
'disk' => 'qiniu'
8868
```
8969

90-
3.`.env` 文件添加配置:
70+
3.剩下时间打局 LOL,已经完事了。
9171

92-
```php
93-
QINIU_BUCKET_NAME=
94-
QINIU_BUCKET_DOMAIN=
95-
QINIU_ACCESS_KEY=
96-
QINIU_SECRET_KEY=
97-
```
9872
> 七牛的 `access_key``secret_Key` 可以在这里找到:https://portal.qiniu.com/user/key ,在创建 `bucket`
9973
(空间)的时候,推荐大家都使用公开的空间。
10074

0 commit comments

Comments
 (0)