I have a layout blade file it has @include('footer')
but in one page I came across this issue : I want to extend that layout but did not want to include the footer.
So what should I do? Is there any way I can check what page is using the layout file in my layout.blade.php?
You can define a section in your layout:
@section('footer')
@include('footer')
@show
And then override it in one view:
@section('footer')
{{-- this section will be empty --}}
@stop
Posting this in case anyone still has this problem. One idea is to create a separate master layout that does not include a footer, and extend from there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With