IconColumn not working

No sure why but a simple IconColumn like
IconColumn::make('icon')
->icon('heroicon-o-pencil'),
IconColumn::make('icon')
->icon('heroicon-o-pencil'),
Is not working? Icons are not showing up. It is driving me nuts
3 Replies
Sector
Sector4w ago
what kind of data you want to show from your db with the iconcolumn?
Dennis Koch
Dennis Koch4w ago
The icon column shows a icon based on your data. Not just an icon
Adam Holmes
Adam Holmes4w ago
Your database field icon will need to have the name of the icon that you want to show. I like to use an enum for my icon fields and then make sure I cast the field to the enum class in the model
Want results from more Discord servers?
Add your server