PHP code example of community-sdks / unlayer-filament

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

    

community-sdks / unlayer-filament example snippets


protected $casts = [
   'content' => 'array',
];

Unlayer::make('content')->

Unlayer::make('content')
    ->

Unlayer::make('content')
    ->templatePicker(options: [
        'type' => 'email', // or 'web'
        'premium' => false,
        'limit' => 20,
        'offset' => 0,
        'collection' => '',
        'sort' => 'recent',
    ])

Unlayer::make('content')
    ->templatePicker()
    ->templatePickerOptions([
        'label' => 'Template Editor',
        'triggerLabel' => 'Search templates',
        'title' => 'Templates',
        'placeholder' => 'Search templates',
        'emptyText' => 'No templates found.',
    ])

Unlayer::make('content')
    ->syncLive()

Unlayer::make('description')
    ->additionalOptions([
        'option' => 'value'
    ])
bash
php artisan unlayer-livewire:install
bash
php artisan vendor:publish --tag=unlayer-livewire-assets --force
bash
php artisan unlayer-livewire:install --config
bash
php artisan unlayer-livewire:install --force
bash
php artisan vendor:publish --tag=unlayer-livewire-assets --force
php artisan vendor:publish --tag=unlayer-livewire-config
bash
php artisan vendor:publish --tag="unlayer-livewire-config"
bash
php artisan vendor:publish --tag="unlayer-filament-views"