yanthink / ueditor
百度UEditor服务端
1.0
2017-07-14 03:19 UTC
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2024-09-29 04:36:45 UTC
README
百度UEditor服务端
安装
- 打开终端,执行以下命令
composer require yanthink/ueditor
- 打开
config/app.php
文件,然后将以下内容添加到providers
数组中
Yanthink\Ueditor\UeditorServiceProvider::class,
- 将以下内容添加到
config/app.php
文件的aliases
数组中
'Ueditor' => Yanthink\Ueditor\Facades\Ueditor::class,
- 在终端执行以下命令
php artisan vendor:publish --provider="Yanthink\Ueditor\UeditorServiceProvider"
配置路由
Route::match(['post', 'get'], 'ueditor/server', [ 'uses' => '\Yanthink\Ueditor\Http\Controllers\UeditorController@init', ]);
配置Ueditor
window.UEDITOR_CONFIG = {
serverUrl: '/ueditor/server',
...,
}