How to render HTML on $subheading
Im trying to render HTML to the subheading but cant find a way around this.
this is the code i have so far:
and this is the result:
9 Replies
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. Weβve already laid the foundation β freeing you to create without sweating the small things.
or just
new HtmlString('html')
but also, i wouldnt render html like this. use cssThanks in advance for the reply.
You mean like in a custom subheading view or something like that?? since i dont want all subheading to look the same.
im just not a fan of putting tailwind classes in php
i would extract it to a different class maybe
also i think all pages have a unique class so maybe you could target that
Done, i extracted the header into a custom view... and do the change there... but now i can't show the actions... π’
yeah i wouldnt suggest that for that reason
its fine
just do the tailwind classes
its no big deal, im just being picky
Ok so tailwind clases it is π
Thanks @danharrin
One question... your opinion on adding css inside php its for a security reason or just personal preference? Thanks in advance π
preference
Thanks