For all entities that have a icon()
method,
you can use one of the preset sets
from the collection
Heroicons
(default Solid and Outline set) or create your own set.
# Solid
->icon('heroicons.academic-cap')
# Outline
->icon('heroicons.outline.academic-cap')
# Custom icons
It is also possible to create a blade file with your custom icon. To do this, you need to go to resources/views/vendor/moonshine/ui/icons
create a blade file (for example my-icon.blade.php
) with an icon displayed inside (for example, the code of an svg file)
and then specify icon('my-icon')