I wouldn't want to have a wrong conclusion that Laravel does not have a way of using image as a link. I have tried many methods, but none seems to work, which leaves me with a surprise. I like Laravel, I'll admit I haven't only gotten the right way to make it do it. I'd thought this will format the HTML to present the image but it only outputs the HTML syntax as a text, what better way can I achieve this? Running out of patience, please help.
{!! Html::linkRoute('updateUserContact', '<img style="height: 100%; width: 100%; object-fit: contain" src="' . asset('images/update.jpg') . '"/>', $contacts->id) !!}
This is the screenshot of the output:
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire