F
Filament13mo ago
Zetto

Array of custom colors (badge)

I'm confused on how to use colors() instead of color() for badge. The case is i want my badge color to be the same as the $record->color, i can usually do this for one instance. But now i 'm showing multiple badge (tags relationship), and i want each to be different. It can be done by returning default color pallette as array (success, warning, info, etc). But how should i do it using custom color? I cant use Color:: class cause the array key is the color.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server