سؤال

I need to input text name and id dynamically and I am trying as below

 {{ Form::text('practice', $practice->name, array('class' => 'large-2','id'=<?php echo $inputTextName;?>)) }}

But it is not parsing PHP here. Even I tried 'id'={{$inputTextName}} but it is giving error.

هل كانت مفيدة؟

المحلول

Can you try this,

 {{ Form::text('practice', $practice->name, array('class' => 'large-2','id'=>$inputTextName)) }}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top