Laravel 8: How to IGNORE a file which is imported to app.blade.php

  laravel, laravel-8, php

The body of my app.blade.php contains this:

<body>
    @include('layouts.navbar')

    <section class="container">
        @yield('content')
    </section>

    @include('layouts.footer')

    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.bundle.js"></script>
</body>

And I extends this at all my blades, but I want the landing page of website to ignore footer.blade.php from app.blade.php which is this one:

@include('layouts.footer')

So how can I do that? Should I just manually include the footer directly at the blades or there is a way to ignore one of the included files of app.blade.php ?

Source: Laravel

Leave a Reply