LaravelPackages.net
Acme Inc.
Toggle sidebar
yanthink/ueditor

百度UEditor服务端

12
0
1.0
About yanthink/ueditor

yanthink/ueditor is a Laravel package for 百度ueditor服务端. It currently has 0 GitHub stars and 12 downloads on Packagist (latest version 1.0). Install it with composer require yanthink/ueditor. Discover more Laravel packages by yanthink or browse all Laravel packages to compare alternatives.

Last updated

UEditor

百度UEditor服务端

安装

  1. 打开终端执行下面命令:
composer require yanthink/ueditor
  1. 打开 config/app.php 然后将下面内容添加到 providers 数组中:
Yanthink\Ueditor\UeditorServiceProvider::class,
  1. 将下面内容添加到 config/app.php 文件的 aliases 数组中:
'Ueditor' => Yanthink\Ueditor\Facades\Ueditor::class,
  1. 在终端执行下面命令:
php artisan vendor:publish --provider="Yanthink\Ueditor\UeditorServiceProvider"

配置Route

    Route::match(['post', 'get'], 'ueditor/server', [
        'uses' => '\Yanthink\Ueditor\Http\Controllers\UeditorController@init',
    ]);

配置Ueditor

    window.UEDITOR_CONFIG = {
      serverUrl: '/ueditor/server',
      ...,
    }
Comments