Laravel中的Blade Comments正在使Apache崩溃 [英] Blade Comments in Laravel are crashing apache

查看:74
本文介绍了Laravel中的Blade Comments正在使Apache崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试加载该页面时,刀片中包含的所有注释都会导致apache崩溃.我正在从事的项目使用刀片式注释来记录笔记和所有内容,因此无法删除它们.我在Windows上使用xampp.

any comments included in a blade are causing apache to crash when I try to load said page. The project I'm working on uses blade comments for notes and everything, so removing them isn't an option. I'm using xampp on windows.

有人有什么主意吗?

推荐答案

您必须确保刀片的打开和关闭标签正确,并且不要在注释中使用@字符:

You must ensure that your blade opening and closing tags are correct and don't use the @ character in the comment:

{-- Should work --}

{-- @will crash --}

{--

that @doesn't work either

--}

这篇关于Laravel中的Blade Comments正在使Apache崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆