Include a sub template view in main view blade file

Blade Templates Views

Committed to the LaraBrain by: subrata at October 25, 2015 5:35 pm

In main view blade file use @include blade function to include sub template file

I have main layout view file which add view content by using

<div class="container">

But when you need to add subtemplate (like common template - sidebar etc) in view file, you can use:


and try to use . (dot) instead of / (slash) , because different systems use different directory separator. You can also use DIRECTORY_SEPARATOR if you would prefer to not use . (dot).