PHP code example of philippnies / filament-grapesjs-v3

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

    

philippnies / filament-grapesjs-v3 example snippets



namespace App\Filament\Resources;
use Filament\Resources\Resource;
use Filament\Resources\Forms\Form;
use Dotswan\FilamentGrapesjs\Fields\GrapesJs;
...

class FilamentResource extends Resource
{
    ...
    public static function form(Form $form)
    {
        return $form->schema([
                GrapesJs::make( 'page_layout' )
                    ->tools([
                        // tools you want to r' => [
                            'type' => 'local',
                            'options' => [
                                'local' => [
                                    'key' => 'gsproject-test',
                                ],
                            ],
                        ],
                        'styleManager' => [
                            'sectors' => [
                                [
                                    'name' => 'General',
                                    'open' => false,
                                    'buildProps' => [
                                        'background-color',
                                        // other properties you want to 
bash
php artisan vendor:publish --tag="filament-grapesjs-config"