elmudo-dev / filament-select-table
This package is an extension of select to allow selecting from a table
Fund package maintenance!
Elmudo-Dev
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 1
Language:Blade
Requires
- php: ^8.1
- filament/forms: ^3.0
- filament/tables: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2025-02-03 18:56:00 UTC
README
example.of.complement.mp4
This plugin is an extension of the field select and allows you to open a table selection to choose elements from a relationship.
Installation
You can install the package via composer:
composer require elmudo-dev/filament-select-table
Usage
FilamentSelectTable::make('reviewer3_id') ->live() ->label('Tests') ->multiple() // simple or multiple ->labelRelationshipAdd('label') ->titleRelationshipTable('Title') ->schema(TagsTableResource::class) ->relationship('tags', 'tag'),
Make TagsTableResource::class
<?php 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(), ]; } }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.