laravel - unable to load images and styles in child blade layout extending master blade -
i using laravel 5
, working fine except unable extend master blade template below hierarchy
resource/views/master.blade.php resource/views/welcome.blade.php resource/views/pages/about.blade.php
when extend
master blade in welcome.blade.php
works fine, images load perfectly, styles load perfectly, when extend
master blade in pages/about.blade.php
images not loading , styles not loading. extending using @extends('master')
. can issue ? head starded spinning because going through documentations & laracasts video tutorials
. please me.
so how writing in extended files? do:
@extends('main') @section('content') html stuff , blade stuff @stop
then in master file, have
yield('content')
solution missing "/" in link, link should start leading "/", in src="/link/to/img.png"
Comments
Post a Comment