cube-agency/filament-json

JSON field for Filament
3,502 3
Install
composer require cube-agency/filament-json
Latest Version:v3.0.0
PHP:^8.2
License:MIT
Last Updated:Jun 25, 2026
Links: GitHub  ·  Packagist
Maintainer: miks

JSON field for Filament

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Basic Filament field to save data as JSON

Compatibility

Package Version Filament Version
1.x 3.x
2.x 4.x
3.x 5.x

Installation

You can install the package via composer:

composer require cube-agency/filament-json

Usage

Add json column to your table:

$table->json('meta')->nullable();

and add this field to your form:

use CubeAgency\FilamentJson\Filament\Forms\Components\Json;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\TagsInput;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Grid;
use Filament\Schemas\Schema;

public static function form(Schema $schema): Schema
{
    return $schema
        ->components([
            // ...
            Json::make('meta')
                ->schema([
                    Grid::make()
                        ->schema([
                            TextInput::make('title'),
                            TagsInput::make('keywords'),
                        ]),
                    Grid::make()
                        ->schema([
                            Textarea::make('description')
                                ->rows(3),
                            FileUpload::make('image')
                                ->image()
                                ->imagePreviewHeight('64'),
                        ]),
                ]),
            // ...
        ]);
}

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

cube-agency/filament-tree-view

Filament package to view records in tree view

3,008 5
pxlrbt/filament-excel

Supercharged Excel exports for Filament Resources

2,996,154 459
ozankurt/modules-blog

Ready to use blog module for laravel.

84 8