Add id attribute to hidden inputs
- Moved
flattenName
function toHasSettings
trait. - As for others inputs, add
id
attribute tohidden
inputs if missing.
@hidden('hidden1')
@hidden('hidden2', 'some-value', ['id' => 'custom-id'])
Generated HTML:
<input id="hidden1" name="hidden1" type="hidden">
<input id="custom-id" name="hidden2" type="hidden" value="some-value">