PHP code example of genealabs / nova-gutenberg
1. Go to this page and download the library: Download genealabs/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/ */
genealabs / nova-gutenberg example snippets
use GeneaLabs\NovaGutenberg\Gutenberg;
class BlogPost extends Resource
{
// ...
public function fields(Request $request) : array
{
return [
// ...
Gutenberg::make("Content"),
// ...
];
}
// ...
}
json
"post-package-update": [
"@php artisan vendor:publish --provider='VanOns\\Laraberg\\LarabergServiceProvider' --tag='public' --force",
"@php artisan vendor:publish --tag=lfm_config",
"@php artisan vendor:publish --tag=lfm_public"
]