Skip to content

Commit 7ef8738

Browse files
authored
Merge pull request #6 from menthe/develop
Develop
2 parents b62e36d + c37f738 commit 7ef8738

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ UEditor 前台文件完全无修改,可自由gulp等工具部署到生产环境
1111

1212
支持本地和阿里云存储,默认为本地上传 public/uploads
1313

14+
##Notice
15+
For Laravel5.1 LTS, please use v0.1.1.
16+
For Laravel5.3 or 5.4, please use v0.1.2.
17+
1418
##Requirement
1519
* Lavavel5.1 LTS, for Lavavel5.3, I do not test, you may have a try.
1620
* PHP5.6+, PHP7.0 is suitable
@@ -59,8 +63,9 @@ php artisan vendor:publish
5963

6064
##ChangeLog
6165

62-
v0.1 First Release, just use for myself.
63-
v0.1.1 正式发布,测试通过,完善文档。
66+
- v0.1 First Release, just use for myself.
67+
- v0.1.1 正式发布,测试通过,完善文档。
68+
- v0.1.2 匹配Laravel5.3和5.4
6469

6570

6671

config/UEditorUpload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
//阿里云配置,若mode='aliyun-oss',以下为必填.
3535
'aliyun-oss' => [
36-
'staticEndPoint'=>'http://xxx.xxx.com/', //注意带上 http://和最后的 /
36+
'staticEndPoint'=>'http://xxx.xxx.com/', //注意带上 http://和最后的 /, 这里填写我们在阿里云后台配置的自定义域名
3737
'ossBucket'=>'',
3838
'ossServer'=>'',
3939
'ossServerInternal'=>'',

src/UEditorServiceProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ class UEditorServiceProvider extends RouteServiceProvider {
2121
* @param \Illuminate\Routing\Router $router
2222
* @return void
2323
*/
24-
public function boot(Router $router) {
24+
public function boot() {
25+
26+
parent::boot ();
2527

26-
parent::boot ($router);
2728
$viewPath = realpath ( __DIR__ . '/../resources/views');
2829
$this->loadViewsFrom ($viewPath, 'ueditor');
2930
$this->publishes([realpath ( __DIR__ . '/../resources/views' ) => base_path ('resources/views/vendor/ueditor')], 'view');

0 commit comments

Comments
 (0)