PHP code example of parallax / filament-syntax-entry
1. Go to this page and download the library: Download parallax/filament-syntax-entry 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/ */
parallax / filament-syntax-entry example snippets
namespace App\Filament\Resources;
use Parallax\FilamentSyntaxEntry\SyntaxEntry;
class ProductResource extends Resource
{
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
SyntaxEntry::make('metadata'),
]);
}
}
SyntaxEntry::make('metadata')
->language('json');
SyntaxEntry::make('metadata')
->theme('smudge');
bash
php artisan vendor:publish --tag="filament-syntax-entry-views"