I think this is a kind of bug of blade compiler, because if I take a look into the compiled view, then I see this:
<?php echo e(Form::text('name', '@{{person.name); ?>') }}
which means, the compiler replaces the first occurence of }}, instead of the last (I mean balde compiler don't care if there is another }} in the text to compile).
The correct replacement would be:
<?php echo e(Form::text('name', '@{{person.name}}')); ?>
I share with you the status of this issue, mybe it will be helpfull to others:
I submitted an issue to Lravel git project about this, and I got a reply, that this is a kind of limitation in BladeCompiler.php regex match.
https://github.com/laravel/framework/issues/19877
I dealed with the pattern and wrote one, which match exactly the good closing delimiters. If you follow the link, you can find the solution.
Now I try to override the affected functions with custom service provider, until I changed the vendor file itself.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community