jundayw/laravel-ueditor

laravel ueditor

安装: 6

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

语言:JavaScript

1.0.0 2020-09-11 09:55 UTC

This package is auto-updated.

Last update: 2024-08-22 18:17:44 UTC


README

在命令行下,执行 composer 命令进行安装

composer require jundayw/laravel-ueditor

参考

https://github.com/overtrue/laravel-ueditor

使用方法

一个简单且易于使用的认证包。

方法

导出配置信息

php artisan vendor:publish --tag=ueditor-config

导出 ueditor 资源文件

php artisan vendor:publish --tag=ueditor-assets

导出视图文件

php artisan vendor:publish --tag=ueditor-views

导出语言包

php artisan vendor:publish --tag=ueditor-lang

视图调用

@component('components.ueditor')
    @slot('name','content')
    @slot('width','100%')
    @slot('height','480px')
    默认值
@endcomponent

或者

@component('components.ueditor',['name' => 'content'])
    默认值
@endcomponent