PHP code example of wildcats1369 / filament-grapesjs-v3

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

    

wildcats1369 / filament-grapesjs-v3 example snippets



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

class FilamentResource extends Resource
{
    ...
    public static function form(Form $form)
    {
        return $form->schema([
            GrapesJs::make('page_layout')
                ->id('page_layout'),
           ]);
    }
    ...
}