PHP code example of clevyr / backpack-page-builder
1. Go to this page and download the library: Download clevyr/backpack-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/ */
clevyr / backpack-page-builder example snippets
'guard' => 'backback',
'guard' => config('auth.defaults.guard'),
...
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Spatie\Permission\Traits\HasRoles;
...
class User extends Model {
...
use CrudTrait;
use HasRoles;
...
}
return [
'default' => [ // Section name, the blade file for the section's name must be the same as this key
'is_dynamic' => true, // Defaults to false, if this is set it will be available to be used in dynamic pages
'title' => [ // Field name
'type' => 'text', // crud field type
'name' => 'title', // crud field name
'label' => 'Title' // crud field label
// ... Any other crud field properties
],
'sub-title' => [
'type' => 'text',
'name' => 'sub-title',
'label' => 'Sub Title'
],
'content' => [
'type' => 'wysiwyg',
'label' => 'Content',
'name' => 'content',
],
],
];