PHP code example of advoor / nova-editor-js

1. Go to this page and download the library: Download advoor/nova-editor-js library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

advoor / nova-editor-js example snippets


use Advoor\NovaEditorJs\NovaEditorJsField;

return [
    // …
    NovaEditorJsField::make('about'),
];

use Advoor\NovaEditorJs\NovaEditorJsCast;

class User extends Model {
    protected $casts = [
        'about' => NovaEditorJsCast::class,
    ];
}

NovaEditorJs::generateHtmlOutput($user->about);

php artisan vendor:publish --provider="Advoor\NovaEditorJs\FieldServiceProvider"