I have an application that lets the user send dynamic emails.
The view I use for the email content has an icon that I embed with $message->embed($icon, 'icon'); like this:
<table class="row">
<tbody>
<tr>
<td class="notify-icon-container">
@if(!empty($icon) && !empty($message))
<img src="@php echo $message->embed($icon, 'icon'); @endphp" class="notify-icon">
@endif
</td>
<td class="notify-content">
</td>
</tr>
</tbody>
</table>
This works great. Unfortunately, $content is dynamically created html that may also contain image elements.
How can I dynamically embed any and all images that are contained in $content's html?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2krrgum
via IFTTT
Aucun commentaire:
Enregistrer un commentaire