I'd like to include HTML produced by my custom blade directive in the translation string. I am looking for something like:
>>> php artisan tinker
>>>Blade::evaluate('@mycustomdirective')
<h2>HTML Produced by my directive directive</h2>
In my particular example, the custom directive returns a brand name formatted using inline styles. The brand name is used in paragraphs of text in markdown emails (so no way of injecting styles via JavaScript).
Is there a straightforward way to do it in Laravel 5.6 (without external packages)?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire