lundi 30 décembre 2019

Pass image in yield section in laravel

For the <title> I've followed this SO answer This is working perfectly for part but the image is not working

Laravel dynamic page title in navbar-brand

But, Here when I try to make an image dynamic instead of title it's giving me a text instead of an image.

For instance,

header.blade.php

@yield('image')

In another blade, I called image as in section

@section('image', '<img src="http://localhost/appname/public/front/images/heading.png">')

Every page has a dynamic logo so I want to put logo dynamic the same like we're doing in the title.

But the result I'm getting is enter image description here

<img src="http://localhost/appname/public/front/images/heading.png">


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/35aBYrN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire