title: How to Get Original Input in Blade Template in Laravel 5.7?
body: <p>The original value of a field can be retrieved by <code>{{ old('my_field') }}</code>. But in my case, it's not enough. I'm working with dynamically added fields. Means, I cannot be sure, that the field <code>my_collection.5.my_field</code> exists. To get the error messages and the error formatting, I need to iterate over all dynamically added <code>fieldset</code>s:</p>
  
  <pre class="lang-php prettyprint-override"><code>@if (request()-&gt;input('collection'))
      @foreach(request()-&gt;input('collection') as $key =&gt; $item)
      &lt;label class="label" for="collection.{{ $key }}.my_field"&gt;my field&lt;/label&gt;
      &lt;textarea
          type="text"
          id="collection.{{ $key }}.my_field"
          name="collection[{{ $key }}][my_field]"
          class="textarea {{ $errors-&gt;has('collection.' . $key . '.my_field') ? 'is-danger' : '' }}"&gt;
          {{ old('collection.' . $key . '.my_field') }}
      &lt;/textarea&gt;
      @endforeach
  @endif
  </code></pre>
  
  <p>But the <code>request()-&gt;input('my_collection')</code> and <code>Input::get('my_collection')</code> return <code>null</code>. It also doesn't work for simple fields (<code>Input::get('my_simple_field')</code> and <code>Input::get('my_simple_field')</code>).</p>
  
  <p><strong>How can I access the input fields in a Blade template?</strong></p>