0

In my laravel application, I have a user registration form.

Since the application is a multilingual one, I'm trying to translate each and every single text, including the placeholder texts.

{!! Form::text('first_name', null, array('placeholder' => ''.{{ __('texts.First Name') }}.'','class' => 'form-control txt_txt')) !!}
{!! $errors->first('first_name', '<span class="help-block" role="alert">:message</span>') !!}

When I try to run this, it keeps giving me an error saying

ParseError
syntax error, unexpected '<' 
shaedrich
  • 5,457
  • 3
  • 26
  • 42
  • 2
    try {!! Form::text('first_name', null, array('placeholder' => __('texts.First Name'),'class' => 'form-control txt_txt')) !!} – John Lobo Jul 08 '21 at 08:04

1 Answers1

2

No need of curly braces inside Form::text

{!! Form::text('first_name', null, array('placeholder' => __('texts.First Name'),'class' => 'form-control txt_txt')) !!}
John Lobo
  • 14,355
  • 2
  • 10
  • 20