Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I want to show a page inside another page

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:\Users\Aman Ullah\ecomm\resources\views\master.blade.php)"
enter image description here

I tried different things but failed.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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')
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading