title: Laravel: blade foreach looping bootstrap columns
body: <p>I have a foreach loop and inside that contains html with bootstrap columns.</p>
  
  <pre><code>@foreach($address as $add)
      &lt;div class="col-md-6"&gt;
          Some data
      &lt;/div&gt;
  @endforeach
  </code></pre>
  
  <p>However, bootstrap requires the row div before creating columns, placing that straight in to the foreach loop would create a row div for each col-md-6. I want to know how I can throw in the row div, skip the next loop throwing in only the closing div tag. And then repeat that process.</p>
  
  <p>Example output where the loops 4 times:</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div class="col-md-6"&gt;
          Some data
      &lt;/div&gt;
      &lt;div class="col-md-6"&gt;
          Some data
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="row"&gt;
      &lt;div class="col-md-6"&gt;
          Some data
      &lt;/div&gt;
      &lt;div class="col-md-6"&gt;
          Some data
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>