Inside first picture, the page name master.blade.php. Where I want to insert header.blade.php coding {{view::make(‘header’)}}.
But the render page show this error, saying “Class “view” not found (View: C:UsersAman Ullahecommresourcesviewsmaster.blade.php)”
I tried different things but failed.
Advertisement
Answer
You should not echo a blade file in another blade with view::make
, you just need to use @include
directive as demonstrated below:
@include('header') @yield('content') @include('footer')