Skip to content
Advertisement

I want to show a page inside another page [closed]

Inside first picture, the page name master.blade.php. Where I want to insert header.blade.php coding {{view::make(‘header’)}}. enter image description here

But the render page show this error, saying “Class “view” not found (View: C:UsersAman Ullahecommresourcesviewsmaster.blade.php)” enter image description here

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')
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement