Comment by Laravel Blade calls CONNECTION_RESET

In a Laravel 4.2 application, I have this file of the form:

{{-- <table> <thead> <th> </th> <th> </th> <th> </th> </thead> <tbody> <tr> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> --}} 

creating this view crashes in the browser.

I don’t know how much of this is causing, sometimes deleting one space solves the problem.

There are similar questions, but there were some blade commands in the comments on the blades, here I have the same problem with pure HTML

EDIT: Copying / pasting the above code solves the problem! please copy from this gist https://gist.githubusercontent.com/anonymous/ad0da06d727e9973ca9e/raw/8d38ad3b416e920a0f1b9b8a42385ae56f25dc20/gistfile1.txt

+6
source share
1 answer

This happened with laravel 5. I fixed this by converting to a php comment, i.e. Replaced

 `{{--` with `<?php /*` 

and

 `--}}` with `*/ ?>` 
0
source

Source: https://habr.com/ru/post/983150/


All Articles