PHP code example of dcodegroup / page-builder

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

    

dcodegroup / page-builder example snippets




return [
    'routing' => [
        'admin' => [
            'middlewares' => [
                'auth:sanctum',
                config('jetstream.auth_session'),
                'verified',
            ],

            'prefix' => '/admin',

            'name_prefix' => 'admin.',
        ],

        'front' => [
            'middlewares' => [],

            'prefix' => '/',

            'name_prefix' => 'cms.',
        ],
    ],
];

Route::pageBuilder();
Route::cmsFront();

$this->app->tag([
    \App\MyCMSModules\Heading::class
], 'page-builder-modules');

$this->app->bind(\Dcodegroup\PageBuilder\Modules\Heading::class, \App\MyCMSModules\Heading::class);
bash
php artisan vendor:publish --tag=page-builder-config
php artisan vendor:publish --tag=page-builder-migrations
bash
php artisan migrate