PHP code example of ahmedabdelaal / filament-json-preview
1. Go to this page and download the library: Download ahmedabdelaal/filament-json-preview 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/ */
ahmedabdelaal / filament-json-preview example snippets
public static function infolist(Infolist $infolist): Infolist
{
return $infolist->schema([
JsonPreview::make('logs'),
]);
}
JsonPreview::make('logs')->searchable()
JsonPreview::make('logs')->showNavigationBar()
bash
php artisan vendor:publish --tag=jsoneditor