PHP code example of cube-agency / filament-json
1. Go to this page and download the library: Download cube-agency/filament-json 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/ */
cube-agency / filament-json example snippets
$table->json('meta')->nullable();
use CubeAgency\FilamentJson\Filament\Forms\Components\Json;
public static function form(Form $form): Form
{
return $form
->schema([
// ...
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')
]),
]),
// ...
]);
}