Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blade Comments in Laravel are crashing apache

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?

like image 349
Dalton Gore Avatar asked Jan 27 '15 15:01

Dalton Gore


People also ask

What is the advantage of Laravel blade template?

The blade templates are stored in the /resources/view directory. The main advantage of using the blade template is that we can create the master template, which can be extended by other files.

Why does Laravel use the blade template engine?

Laravel Blade template engine enables the developer to produce HTML based sleek designs and themes. All views in Laravel are usually built in the blade template. Blade engine is fast in rendering views because it caches the view until they are modified. All the files in resources/views have the extension .


1 Answers

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

--}
like image 191
Nicolas Beauvais Avatar answered Sep 21 '22 22:09

Nicolas Beauvais