PHP code example of creode / nova-page-builder
1. Go to this page and download the library: Download creode/nova-page-builder 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/ */
creode / nova-page-builder example snippets
public function fields(Request $request)
{
return [
// ...
PageBuilder::make('Content')
->exclude(['banner']),
];
}
use Creode\NovaPageBuilder\Traits\HasComponents;
class Page extends Model
{
use HasPageBuilderContent;
/**
* The name of your page builder field.
*/
protected $componentField = 'content';
}
@
bash
php artisan vendor:publish --tag="nova-page-builder-views"