PHP code example of elmudo-dev / filament-select-table

1. Go to this page and download the library: Download elmudo-dev/filament-select-table 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/ */

    

elmudo-dev / filament-select-table example snippets


FilamentSelectTable::make('reviewer3_id')
    ->live()
    ->label('Tests')
    ->multiple() // simple or multiple
    ->labelRelationshipAdd('label')
    ->titleRelationshipTable('Title')
    ->schema(TagsTableResource::class)
    ->relationship('tags', 'tag'),



namespace App\Filament\Resources\CourseResource;

use Filament\Tables\Columns\TextColumn;

class TagsTableResource
{
    public static function table(): array
    {

        return [
            TextColumn::make('id')->label('id')->searchable(),
            TextColumn::make('tag')->label('tag')->sortable(),
        ];

    }
}