Showing icons in Table Column Badge
Hey all,
Iam trying to accomplish this. As my types are stored in database and not as enum, how can I add icon within the badge that loads the icon from icon column in types table?
Thanks!
7 Replies
Maybe you should use Closure as icon's parameter?
https://filamentphp.com/docs/3.x/tables/columns/advanced
Yes, but state does not have the relation item. It has the full relation.
how about use $record instead? not $state, get relationship manually, something like $record->types
?
@Leandro Ferreira thanks. Did you test it? Somehow for me icons are not showing up.
are you using heroicons?
worked!
I had an issue.
Thanks!