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">


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire