Issue
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.
<img src="http://localhost/appname/public/front/images/heading.png">
Solution
You can do like this
@section('image')
<img src="http://localhost/appname/public/front/images/heading.png">
@endsection
Answered By - Akram Wahid
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.