relaticle / custom-fields
User Defined Custom Fields for Laravel Filament
2.0.0-beta2
2025-07-09 20:52 UTC
Requires
- php: ^8.3
- filament/filament: ^4.0
- postare/blade-mdi: ^1.0
- spatie/laravel-data: ^4.12.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^8.1
- orchestra/testbench: ^9.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- pestphp/pest-plugin-livewire: ^3.0
- pestphp/pest-plugin-type-coverage: ^3.5
- phpstan/phpstan-deprecation-rules: *
- phpstan/phpstan-phpunit: ^2.0
- rector/rector: *
- spatie/laravel-ray: ^1.26
- dev-main
- 2.x-dev
- 2.0.0-beta2
- 2.0.0-beta1
- 1.5.21
- 1.5.20
- 1.5.19
- 1.5.18
- 1.5.17
- 1.5.16
- 1.5.15
- 1.5.14
- 1.5.13-beta
- 1.5.12-beta
- 1.5.11-beta
- 1.5.0-beta
- 1.4.21
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- 0.9.9.2
- 0.9.9.1
- 0.9.8.9
- 0.9.8.8
- 0.9.8.7
- 0.9.8.6
- 0.9.8.5
- 0.9.8.4
- 0.9.8.3
- 0.9.8.2
- 0.9.8.1
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5.3
- 0.9.5.2
- 0.9.5.1
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- dev-2.x-next
- dev-feature/entity-management
- dev-feature/builder-api-refactoring
- dev-feature/conditions
- dev-validation-experiments
- dev-feature/select-option-colors
This package is auto-updated.
Last update: 2025-07-12 17:56:54 UTC
README
A powerful Laravel/Filament plugin for adding dynamic custom fields to any Eloquent model without database migrations.
✨ Features
- 32+ Field Types - Text, number, date, select, rich editor, and more
- Conditional Visibility - Show/hide fields based on other field values
- Multi-tenancy - Complete tenant isolation and context management
- Filament Integration - Forms, tables, infolists, and admin interface
- Import/Export - Built-in CSV capabilities
- Security - Optional field encryption and type-safe validation
- Extensible - Custom field types and automatic discovery (coming soon)
🔧 Requirements
- PHP 8.3+
- Laravel via Filament 3.0+
🚀 Quick Start
Installation
composer require relaticle/custom-fields
php artisan vendor:publish --tag="custom-fields-migrations"
php artisan migrate
Integrating Custom Fields Plugin into a panel
use Relaticle\CustomFields\CustomFieldsPlugin; use Filament\Panel; public function panel(Panel $panel): Panel { return $panel // ... other panel configurations ->plugins([ CustomFieldsPlugin::make(), ]); }
Setting Up the Model
Add the trait to your model:
use Relaticle\CustomFields\Models\Contracts\HasCustomFields; use Relaticle\CustomFields\Models\Concerns\UsesCustomFields; class Post extends Model implements HasCustomFields { use UsesCustomFields; }
Add to your Filament form:
use Relaticle\CustomFields\Filament\Forms\Components\CustomFieldsComponent; public function form(Form $form): Form { return $form->schema([ // Your existing form fields... CustomFieldsComponent::make()->columns(1), ]); }
📚 Documentation
Full documentation and examples: https://custom-fields.relaticle.com/
🤝 Contributing
Contributions welcome! Please see our contributing guide.