PHP code example of mrpowerup / filament-json-column

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

    

mrpowerup / filament-json-column example snippets


public static function form(Form $form): Form
    {
        return $form
            ->schema([
                FilamentJsonColumn::make('example'),
            ]);
    }

FilamentJsonColumn::make('example')->accent('#FFFFFF'); // The input needs to be a valid CSS color

FilamentJsonColumn::make('example')->editorOnly(); // Displays only the editor tab
FilamentJsonColumn::make('example')->viewerOnly(); // Displays only the viewer tab

FilamentJsonColumn::make('example')->editorHeight(500); // Accepts an int, defaults to 300