PHP code example of guava / filament-clusters

1. Go to this page and download the library: Download guava/filament-clusters 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/ */

    

guava / filament-clusters example snippets


use Guava\FilamentClusters\Forms\Cluster;

Cluster::make([
    // Your schema
]);

use Guava\FilamentClusters\Forms\Cluster;

Cluster::make([
    \Filament\Forms\Components\Select::make('currency')
        ->options(['EUR', 'USD']),
    
    \Filament\Forms\Components\TextInput::make('amount')
        ->numeric()
        ->

use Guava\FilamentClusters\Forms\Cluster;

Cluster::make([
    // Schema
])
    ->label('My label')
    ->hint('Useful hint')
    ->helperText('Help when you\'re stuck');

use Guava\FilamentClusters\Forms\Cluster;

Cluster::make([
    // Schema
])->columns(5);

Cluster::make([
    // Schema
])->columns(1);

Cluster::make([
    // Schema
])->columns([
    'default' => 1,
    'lg' => 3,
]);