title: Show date field value after form submission
body: <p>I am using Bootstrap date input to select date in my form. I would like to keep the date after submitting the form. It's been a few days since I started researching, but so far haven't found a solution. In my project, I'm using Laravel 5.4 and for dates, I'm using Carbon. Laravel's </p>
  
  <pre><code>    {{ old('input_date') }}
  </code></pre>
  
  <p>just doesn't work. If anyone could help me find a solution, it would be much appreciated.</p>
  
  <p>This is my controller code:</p>
  
  <pre><code>public function showMisHistory () {
      $mises = '';
      return view('uploads.mis_history', [
          'mises' =&gt; $mises,
      ]);
  }
  public function showMisHistoryBetweenDates (Request $request) {
      $this-&gt;validate($request, [
          'start_date' =&gt; 'required',
          'end_date' =&gt; 'required',
      ]);
      $mises = Mis::where('uploader_pin', Auth::user()-&gt;pin)-&gt;whereBetween('date_of_data_type', array($request-&gt;start_date, $request-&gt;end_date))-&gt;get();
      // $mises = Mis::where('uploader_pin', Auth::user()-&gt;pin)-&gt;get();
      $totalLoanAmount = collect($mises)-&gt;sum('principal_loan_amount');
      $totalPremium = collect($mises)-&gt;sum('premium');
      $row_number = 1;
      return view('uploads.mis_history', [
          'mises' =&gt; $mises,
          'totalLoanAmount' =&gt; $totalLoanAmount,
          'totalPremium' =&gt; $totalPremium,
          'row_number' =&gt; $row_number,
      ]);
  }
  </code></pre>
  
  <p>And this is form I am using.</p>
  
  <pre><code>&lt;form action="{{ route('misHistoryBetweenDates') }}" method="POST" class="date-search-form"&gt;
                  {{ csrf_field() }}
                  &lt;div class="col-md-5"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="col-sm-2 control-label"&gt;From&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;input type="date" name="start_date" class="form-control" value="{{ old('start_date') }}"&gt;
                          &lt;/div&gt;
                          @if (old('start_date'))
                          &lt;label class="col-sm-2 control-label"&gt;&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;span id="helpBlock" class="help-block"&gt;{{ old('start_date') }}&lt;/span&gt;
                          &lt;/div&gt;
                          @endif
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-md-5"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="col-sm-2 control-label"&gt;To&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;input type="date" name="end_date" class="form-control" value="{{ old('end_date') }}"&gt;
                          &lt;/div&gt;
                          @if (old('end_date'))
                          &lt;label class="col-sm-2 control-label"&gt;&lt;/label&gt;
                          &lt;div class="col-sm-10"&gt;
                              &lt;span id="helpBlock" class="help-block"&gt;{{ old('end_date') }}&lt;/span&gt;
                          &lt;/div&gt;
                          @endif
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="col-md-2"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;input type="submit" name="submit" class="btn btn-primary"&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/form&gt;
  </code></pre>