This repository was archived by the owner on Aug 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-30
lines changed Expand file tree Collapse file tree 1 file changed +4
-30
lines changed Original file line number Diff line number Diff line change @@ -59,42 +59,16 @@ $ composer require "overtrue/laravel-ueditor:~1.0"
59
59
60
60
如果你想使用七牛云储存,需要进行下面几个简单的操作:
61
61
62
- 1.配置 `config/ueditor.php` 的 `disk` 为 ` qiniu`:
62
+ 1.安装和配置 [laravel-filesystem-qiniu](https://github.com/overtrue/laravel-filesystem- qiniu)
63
63
64
- ```php
65
- 'disk' => 'qiniu'
66
- ```
67
-
68
- 2.在 ` config/filesystems.php ` 添加下面的配置:
64
+ 2.配置 `config/ueditor.php` 的 `disk` 为 `qiniu`:
69
65
70
66
```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'
88
68
```
89
69
90
- 3.在 ` .env ` 文件添加配置:
70
+ 3.剩下时间打局 LOL,已经完事了。
91
71
92
- ``` php
93
- QINIU_BUCKET_NAME=
94
- QINIU_BUCKET_DOMAIN=
95
- QINIU_ACCESS_KEY=
96
- QINIU_SECRET_KEY=
97
- ```
98
72
> 七牛的 ` access_key ` 和 ` secret_Key ` 可以在这里找到:https://portal.qiniu.com/user/key ,在创建 ` bucket `
99
73
(空间)的时候,推荐大家都使用公开的空间。
100
74
You can’t perform that action at this time.
0 commit comments