Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Latest commit

 

History

History
55 lines (39 loc) · 1.5 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.5 KB

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.