This package seamlessly integrates the powerful JSONEditor library , enabling developers to easily incorporate a robust JSON editor into their Filament projects. https://github.com/josdejong/jsoneditor
You can install the package via composer:
composer require ahmedabdelaal/filament-json-preview
publish the svg icons
php artisan vendor:publish --tag=jsoneditor
public static function infolist(Infolist $infolist): Infolist
{
return $infolist->schema([
JsonPreview::make('logs'),
]);
}
enable search in json
JsonPreview::make('logs')->searchable()
show NavigationBar in json
JsonPreview::make('logs')->showNavigationBar()
Your contributions are welcome and greatly valued! Please feel free to submit a pull request or create an issue.
The MIT License (MIT). Please see License File for more information.