PHP code example of vysotsky-productions / nova-gutenberg

1. Go to this page and download the library: Download vysotsky-productions/nova-gutenberg 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/ */

    

vysotsky-productions / nova-gutenberg example snippets


use VysotskyProductions\NovaGutenberg\Gutenberg;

class BlogPost extends Resource
{
    // ...

    public function fields(Request $request) : array
    {
        return [
            // ...
            Gutenberg::make("Content")
                ->direction("rtl"),
            // ...
        ];
    }

    // ...
}
sh
  php artisan vendor:publish --tag=lfm_config
  php artisan vendor:publish --tag=lfm_public