awcodes/filament-badgeable-column
BadgeableColumn), it integrates seamlessly into existing table configurations without requiring invasive changes. Ideal for incremental UI improvements without architectural refactoring.modifyTestResponseUsing()).Status, Priority, Tags) with visual badges.Table and Column classes.composer show filament/filament).awcodes/filament-badgeable-column is compatible (see compatibility table).composer require awcodes/filament-badgeable-column
Publish config if needed (though minimal; check config/filament-badgeable-column.php).BadgeableColumn:
BadgeableColumn::make('status')
->prependBadges(fn ($record) => [
Badge::make()->label('Urgent')->color('danger'),
])
->appendBadges(fn ($record) => [
Badge::make()->label('Verified')->color('success'),
]);
modifyTestResponseUsing() to retroactively add badges.spatie/laravel-filament-resources) if they don’t override column rendering.BadgeableColumn for bespoke logic (e.g., conditional badges).__() translation helper.tailwind.config.js or CSS.BadgeableColumn.prependBadges/appendBadges calls).dd($record) to confirm data passed to badge closures.filament/panels:table virtual scrolling enabled.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Filament major version upgrade breaks compatibility | Badges stop rendering. | Test in staging; fork if needed. |
| Tailwind CSS conflicts with badge styles | Visual corruption. | Override via custom CSS or config. |
| Excessive badges slow table rendering | Poor UX for admins. | Limit badge usage; lazy-load if possible. |
| Data passed to badges is incorrect | Wrong labels/colors. | Validate with dd($record) in dev. |
status_*, priority_*).How can I help you explore Laravel packages today?