I am new to Laravel. Therefore I am creating an e-commerce website to learn Laravel. But whenever I am using @include to include header.blade.php it's creating a margin button(approx 10px I guess). I have used @extends as well but same problem. I am unable to fix this problem. Please suggest me to short out this problem.
Yes. In core php there was no problem to include any other pages. But here I don't know why the problem occuring. The Gap is occurring after the header that means below header and below footer.
You'd have to show your layout file, and the content of the 3 included files in order to help more.
I tend to put the includes on their own lines, and the includes are fully closed markup blocks, which usually avoids the problem. It's not a problem with the include system as it's basically the same as a native php include. It's the markup of the included files, and where/how they are placed that matters. What does the html source of the page look like after it's sent to your browser?
What I mean by fully closed markup blocks is I'd never have a view with
<div>
<ul>
where the closing div and ul elements aren't present. They would both have closing tags. If everything is closed properly, then it doesn't matter where you place the @includes.