title: How to get old value select option after submit blade laravel
body: <p>this is the code and when i submit form why i can't selected old data?</p>
  
  <pre><code>&lt;select class="form-control" name="dateRestrict"&gt;
      &lt;option value="" {{ old('dateRestrict') == "" ? 'selected' : '' }}&gt;Random Time&lt;/option&gt;
      &lt;option value="d1" {{ old('dateRestrict') == "d1" ? 'selected' : '' }}&gt;Yesterday&lt;/option&gt;
      &lt;option value="w" {{ old('dateRestrict') == "w" ? 'selected' : '' }}&gt;Last Week&lt;/option&gt;
      &lt;option value="m" {{ old('dateRestrict') == "m" ? 'selected' : '' }}&gt;Last Month&lt;/option&gt;
      &lt;option value="y"{{ old('dateRestrict') == "y" ? 'selected' : '' }}&gt;Last Year&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>