/summernote-nova

Summernote WYSIWYG editor for Laravel Nova

MIT LicenseMIT

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:

'providers' => [
    ...,
    /*
     * Package Service Providers...
     */
    Emotality\Nova\SummernoteServiceProvider::class,
    ...,
];

Usage

Import class inside your Nova resource:

use Emotality\Nova\Summernote;

Then add it to your fields array:

public function fields(Request $request)
{
    return [
        ...,
        Summernote::make('Body'),
        ...
    ];
}

License

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