Heading Icon
How can I add an icon to
getHeading
method from ViewRecord?
public function getHeading(): string
{
return "Viewing text <icon here>";
}
6 Replies
I would like to add this one "heroicon-s-heart" but no icon has shown
Use
new HtmlString()
combined with Blade::render("@svg('heroicon-s-heaert')")
I've tried this one
new HtmlString(Blade::render("@svg('heroicon-s-heart')"));
but no luck. May I know what I've missed?Did you change the return type? Or is it still
string
?still string
You should change the return type if you change the value you return π
Maybe you need to override
getHeader()
because heading only allows string
not sure.