ahmedabdelaal / filament-json-preview
Preview Json In Formatted Way
v1.0.0
2024-05-30 08:52 UTC
Requires
- php: ^8.1|^8.2
- filament/filament: ^3.0
- filament/forms: ^3.0
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9|^8.1
- phpstan/extension-installer: ^1.1
README
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
Installation
You can install the package via composer:
composer require ahmedabdelaal/filament-json-preview
publish the svg icons
php artisan vendor:publish --tag=jsoneditor
Usage
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()
Contributing
Your contributions are welcome and greatly valued! Please feel free to submit a pull request or create an issue.
Credits
License
The MIT License (MIT). Please see License File for more information.
default

search

navigation bar
