How can I comment out a line in a template Laravel
that contains @include
, @section
, @endsection
and evenimg src"{{ asset('libs/magnific-popup/magnific-popup.js') }}"
I have tried with
<!-- -->
//
/*
but I still do not try to convince myself that it is well done.
You can do it like this:
The comment for laravel blade templates is:
These braces comment not only the html elements of your template but also structures like:
While the html comment will only comment the html tags inside it (but not the php code), the {{-- --}} blade tags will comment both.
Namely:
In both cases, the PHP content will be processed:
Instead, in these cases not: