title: Generating a large dropdown list
body: <p>I'm making a large form in Laravel 8 and one of the dropdown lists has to contain values from 1 to 85.</p>
  <p>Is there a way that I can generate the list using a loop instead of having to type out the whole 85 options?</p>
  <p>My current code is</p>
  <pre><code>    &lt;div class=&quot;col-sm-2&quot;&gt;
         &lt;div class=&quot;form-group{{ $errors-&gt;has('map1_id') ? ' has-danger' : '' }}&quot;&gt;
            &lt;select class=&quot;selectpicker col-sm-12 pl-0 pr-0&quot; name=&quot;map1_id&quot; data-style=&quot;select-with-transition&quot; title=&quot;&quot; data-size=&quot;40&quot;&gt;
               @foreach($user as $users)
                  &lt;option value=&quot;{{$users-&gt;map1}}&quot; @if (old('map_id', $users-&gt;map1)) selected=&quot;selected&quot; @endif&gt;{{$users-&gt;map1}}&lt;/option&gt;
               @endforeach
           &lt;/select&gt;
         @include('alerts.feedback', ['field' =&gt; 'map1id'])
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>