Remove comments in Laravel Blade view

Solution:

The easy way is using Blade comments instead of HTML comments, you are indeed using blade, so, why use other kind of comments?

Blade comments:

{{-- This comment will not be present in the rendered HTML --}}

Now, if you insists on removing HTML comments, you could actually do some minification of the HTML at the same time.
You could do a Middleware that process the output and remove comments, remove spaces, and other stuffs.

Take a look at this solution: https://asked.io/laravel-5-minify-middleware

And maybe just include a pattern matching like this '/<!--[^\[](.*?)[^\]]-->/s' => '', to the list of replacements and that should work.
Or you could actually search for a minification library and use it in that middleware.

Do notice that this process adds a little of overhead, not much actually, but some.

The best and more efficient solution to just remove the comments would be to use Blade comments.