i am making a basic website and i am trying to make function that will show the content of the file "showcase" in "inc" folder only on a homepage, the page seems to work fine without it....
<body>
@include("inc.navbar")
<div class="container">
<div class="row">
<div class="col-md-8 col-lg-8">
@yield("content")
</div>
<div class="col-md-4 col-lg-4">
@include("inc.sidebar")
</div>
</div>
</div>
</body>
but when i add a function:
<body>
@include("inc.navbar")
<div class="container">
@if (request::is("/"))
@include('inc.showcase')
@endif
<div class="row">
<div class="col-md-8 col-lg-8">
@yield("content")
</div>
<div class="col-md-4 col-lg-4">
@include("inc.sidebar")
</div>
</div>
</div>
</body>
I suspect it must be some path problem, but i havent found any issue with path name or anything... any ideas? Thanks in advance for any reply.