Laravel 中的 Blade 评论使 apache 崩溃 [英] Blade Comments in Laravel are crashing apache

查看:22
本文介绍了Laravel 中的 Blade 评论使 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.

有人有什么想法吗?

推荐答案

一定要保证你的blade开闭标签正确,不要在注释中使用@字符:p>

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 评论使 apache 崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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