Disabling a section of code in a specific URL of laravel website [closed]

-1

I have a web page and I use a general blade layout to extend it to all the pages that require it. On a certain page, suppose localhost: 8000 / book would like a section of code that extends from the general layout not to be displayed, is it possible to do this?

ex.

<div class="container">
    <p>Hola!</p>
</div>

I would like the above code not to be displayed in the localhost section: 8000 / book

Greetings!

    
asked by Jesus 21.06.2017 в 23:42
source

1 answer

-1

The Blade templates allow you to use blocks of PHP code:

<?php
...
?>

Then you only need to pick up the current URL and if it is different from the one you want to use, print the code snippet or do not do it otherwise.

    
answered by 21.06.2017 / 23:49
source