Support the ongoing development of Laravel.io →
Blade Forms Laravel
Last updated 1 year ago.
0

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}}')); ?>
0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

svolenszki svolenszki Joined 21 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.