PHP code example of tarique / smoothie-filament-grapesjs-v3
1. Go to this page and download the library: Download tarique/smoothie-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/ */
tarique / smoothie-filament-grapesjs-v3 example snippets
namespace App\Filament\Resources;
use Filament\Resources\Resource;
use Filament\Resources\Forms\Form;
use Tarique\FilamentGrapesjs\Fields\GrapesJs;
...
class FilamentResource extends Resource
{
...
public static function form(Form $form)
{
return $form->schema([
GrapesJs::make('page_layout')
->id('page_layout'),
]);
}
...
}