Skip to content

Support custom icons for Resources #76

Discussion options

You must be logged in to vote

@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'.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ryangjchandler
Comment options

@ryangjchandler
Comment options

@danharrin
Comment options

@danilopolani
Comment options

@danharrin
Comment options

Answer selected by danharrin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants