laravel form old value array

47

{{ var_dump(old('field.0')) }}
<form method="post" action="">
    {!! csrf_field() !!}
    <input type="text" name="field[]" value="{{ old('field.0') }}" />
    <input type="text" name="field[]" value="{{ old('field.1') }}" />
    <input type="text" name="field[]" value="{{ old('field.2') }}" />
    <input type="submit" name="submit" value="Submit" />
</form>

Comments

Submit
0 Comments