All you need to do for blade to ignore the braces is:
@{{ data }}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I am making a single page application with anguarjs. While blade and angular both use double curly brace({{,}}) as interpolation, I decide not to use blade, and just return html file with angular code in it. But when i use view(index), it only recognizes php file, not html file. Is there any way to make 'view' returns files with html extension?
@ringo No, blade will interpret it only if it has a .blade.php extension, not just a .php extension. You can have a php file with NO php in it and ONLY html. Just don't have any php tags in it if you don't want any php to be interpreted.
You could name them like yourfile.html.php just to make it more clear in your view directory which are the html-only files. Then just load them like normal views like you're wanting. This will just get around laravel only loading view files with the php extension. It doesn't mean it has to actually contain php.
Please or to participate in this conversation.