codewithdennis/filament-advanced-choice
Adds 8 advanced Filament form fields: radio- and checkbox-based card/stacked card variants plus enhanced CheckboxList with descriptions and extras. Supports Filament v4/v5 and integrates into custom themes via @source for proper styling.
Pros:
HasLabel, HasDescription, and custom HasExtra interfaces, enabling type-safe, maintainable configurations. Reduces boilerplate for complex forms.searchable()/bulkToggleable() APIs, reducing custom implementation effort for common patterns.Cons:
rules()).composer require command. No database migrations or schema changes.npm run build). No breaking changes to existing themes.RadioCards) ensure smooth upgrades.Medium Risk:
Key Questions:
getLabel()/getDescription() methods.)Select fields with descriptions, custom-built radio/checkbox grids).RadioCard.filament-spatie-laravel-medialibrary). Test for namespace/class collisions.RadioCards) allow gradual migration but should be phased out post-adoption.composer require codewithdennis/filament-advanced-choice
Add CSS source to resources/css/filament/app.css:
@source '../../../../vendor/codewithdennis/filament-advanced-choice/resources/**/*.blade.php';
Rebuild assets:
npm run build
RadioCard vs. RadioTable tradeoffs).hiddenInputs() behavior, enum requirements).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| CSS/JS build fails | Broken UI | Add npm run dev to CI/CD pipeline; monitor build logs. |
| Filament update breaks compatibility | Component rendering issues | Test with Filament’s beta releases; use version constraints in composer.json. |
| Custom enum implementation errors | Runtime errors | Validate enums with HasLabel, HasDescription, and HasExtra interfaces. |
| Repeater compatibility issues | Forms not saving in repeaters | Use the latest package version (v1.0.6+). |
| Search functionality broken | UX degradation | Test search with special |
How can I help you explore Laravel packages today?