PHP code example of soeurngsar / gutenberg

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

    

soeurngsar / gutenberg example snippets


composer 

php artisan vendor:publish --provider="SoeurngSar\Gutenberg\GutenbergServiceProvider"

php artisan vendor:publish --provider="VanOns\Laraberg\LarabergServiceProvider"


$this->crud->addField([
  'name' => 'content',
  'label' => trans('backpack::pagemanager.content'),
  'view_namespace' => 'gutenberg::fields', // this prop
  'type' => 'gutenberg', // this prop
  'placeholder' => trans('backpack::pagemanager.content_placeholder'),
]);

php artisan vendor:publish --provider="SoeurngSar\Gutenberg\GutenbergServiceProvider" --tag=views --force