I'm trying to add a variable to input name, like this:
{!! Form::text('material[{{$num}}]', old('material[{{$num}}]'), ['class' => 'form-control', 'placeholder'=> '']) !!}
But in html it returns me this:
<input class="form-control" placeholder="" name="material[<?php echo e($num); ?>]" type="text">
And I don't understand what is the problem.
How can I solve that?
Thank you