项目作者: emotality

项目描述 :
Summernote WYSIWYG editor for Laravel Nova
高级语言:
项目地址: git://github.com/emotality/summernote-nova.git
创建时间: 2020-09-07T00:17:08Z
项目社区:https://github.com/emotality/summernote-nova

开源协议:MIT License

下载


Summernote for Laravel Nova (archived)

Packagist License
Latest Stable Version
Total Downloads

Summernote WYSIWYG editor for Laravel Nova.

PLEASE NOTE: This repo has been archived and will not be updated!

Installation

  1. composer require emotality/summernote-nova
  2. php artisan vendor:publish --provider="Emotality\Nova\SummernoteServiceProvider"

Laravel 5.5+ will use the auto-discovery function but for Laravel 5.4 and lower, you will need to include the service provider manually in config/app.php:

  1. 'providers' => [
  2. ...,
  3. /*
  4. * Package Service Providers...
  5. */
  6. Emotality\Nova\SummernoteServiceProvider::class,
  7. ...,
  8. ];

Usage

Import class inside your Nova resource:

  1. use Emotality\Nova\Summernote;

Then add it to your fields array:

  1. public function fields(Request $request)
  2. {
  3. return [
  4. ...,
  5. Summernote::make('Body'),
  6. ...
  7. ];
  8. }

License

summernote-nova is released under the MIT license. See LICENSE for details.