Blade Comments in Laravel are crashing apache

2019-01-27 19:54发布

问题:

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.

Anyone have any ideas?

回答1:

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

--}