PHP code example of jccoca / filament-json-column

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

    

jccoca / filament-json-column example snippets


use Filament\Schemas\Schema;
use JCCoca\FilamentJsonColumn\JsonColumn;
use JCCoca\FilamentJsonColumn\JsonInfolist;

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

public static function infolist(Schema $schema): Schema
{
    return $schema->schema([
        JsonInfolist::make('example'),
    ]);
}