简体   繁体   中英

Laravel 4 and Blade, How to output blade variable in form label

There is probably a really easy answer to this question. I need to make a Label based on a fixed string such as 'quesID' followed with a number stored in a variable.

So far I have this

 {{ Form::label($question->que_question_id, 'quesID') }}

Outputs

 <label for="2">quesID</label>

I have tried

  {{ Form::text($question->que_question_id, 'quesID' $question->que_question_id) }}

But I get syntax errors. Is there a way to output the varible?

尝试

{{ Form::text($question->que_question_id, 'quesID '.$question->que_question_id) }}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM