Support custom icons for Resources #76
-
It would be nice to have the ability to add custom icons for resources. I don't have a clear idea about what's the better option, but I can think about these ways:
About point 4, I already use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
@danilopolani The E.g. create a file in |
Beta Was this translation helpful? Give feedback.
@danilopolani The
$icon
property on a resource is just the string for a component, so you could wrap your SVG in a custom Blade component and set the property to the name of the component.E.g. create a file in
resources/views/components/post-icon
and then change$icon
to$icon = 'post-icon'
.