Blade Laravel 中的评论使 apache 崩溃

Blade Comments in Laravel are crashing apache

blade 中包含的任何评论都会导致 apache 在我尝试加载所述页面时崩溃。我正在处理的项目使用 blade 注释注释和所有内容,因此无法删除它们。我在 windows 上使用 xampp。

有人有什么想法吗?

您必须确保您的 blade 开始和结束标记正确并且不要在评论中使用 @ 字符:

{-- Should work --}

{-- @will crash --}

{--

that @doesn't work either

--}