Support the ongoing development of Laravel.io →
Views Blade Forms
Last updated 2 years ago.
0

{{ Form::text($name) }}

Last updated 2 years ago.
0

{{ }} is translated to echo statement in php, so you basically opening another php tag inside your method call, remove braces arount 'name'

Last updated 2 years ago.
0

I want to use name with Angularjs

Last updated 2 years ago.
0

I am not using angular but you could try to escape blade then.

@{{ This will not be processed by Blade }} 
Last updated 2 years ago.
0

I use Angular repeat option, so I must to use it in {{ Form::text('{{name}}') }}

Last updated 2 years ago.
0

Than I cannot help you. I have never used angular but my best guess would be something with escaping that braces.

Last updated 2 years ago.
0

Either in Laravel or in AngularJS you have to configure it to use a different delimiter. For example, in Laravel, you can use

Blade::setEscapedContentTags('[[', ']]');
Blade::setContentTags('[[[', ']]]');
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

yuomtheara yuomtheara Joined 12 Feb 2014

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.