cube-agency/filament-json

JSON field for Filament
3,547 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,055 5
bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

5,426,166 2,827
shuvroroy/filament-spatie-laravel-health

This plugin is built on top of Spatie's Laravel-health package

957,695 197
pxlrbt/filament-excel

Supercharged Excel exports for Filament Resources

3,096,322 459

Version History

Version Released PHP Laravel License
v3.0.0 ^8.2 MIT
v2.0.0 ^8.2 MIT
v1.0.2 ^8.2 ^10.0|^11.0|^12.0 MIT
v1.0.1 ^8.2 ^10.0|^11.0 MIT
v1.0.0 ^8.1 ^10.0 MIT