Downloads
Stars
Version
百度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',
]);
window.UEDITOR_CONFIG = {
serverUrl: '/ueditor/server',
...,
}