badge in form placeholder
Hi, I am trying to display a xfilament badge inside a form placeholder. Any idea how can i achieve something like this?
3 Replies
Hi, I have somewhat achieved it with
Is there a better way to do it?
HtmlString isn’t going to work like that because it doesn’t go through the blade parser. You definitely need to use a ViewField. Could possibly work with Blade::render() instead of HtmlString. But I would use the ViewField to keep it simple.