14/07
2017
Wallogit.com
2017 © Pedro Peláez
百度UEditor服务端
百度UEditor服务端, (*1)
1) 打开终端执行下面命令:, (*2)
composer require yanthink/ueditor
2) 打开 config/app.php 然后将下面内容添加到 providers 数组中:, (*3)
Yanthink\Ueditor\UeditorServiceProvider::class,
3) 将下面内容添加到 config/app.php 文件的 aliases 数组中:, (*4)
'Ueditor' => Yanthink\Ueditor\Facades\Ueditor::class,
4) 在终端执行下面命令:, (*5)
php artisan vendor:publish --provider="Yanthink\Ueditor\UeditorServiceProvider"
Route::match(['post', 'get'], 'ueditor/server', [
'uses' => '\Yanthink\Ueditor\Http\Controllers\UeditorController@init',
]);
window.UEDITOR_CONFIG = {
serverUrl: '/ueditor/server',
...,
}