title: Passing data using array from View (Blade) to Controller in laravel
body: <p>I have a blade form which has a repeater input box and a select box, the repeater works fine but how do i pass the data from those fields to back-end controller in laravel?</p>
  
  <p><strong>add.balde.php</strong></p>
  
  <pre><code>&lt;!--begin::Add-Invoice-Form--&gt;
  &lt;form class="m-form m-form--fit m-form--label-align-right m-form--group-seperator-dashed" action="{{route('store_invoice')}}" method="POST" enctype="multipart/form-data"&gt;
      {{ csrf_field() }}
      &lt;div class="m-portlet__body"&gt;
          &lt;div class="form-group m-form__group row"&gt;
  
              &lt;div class="col-lg-4"&gt;
                  &lt;label&gt;
                      Customer Name:
                  &lt;/label&gt;
                  &lt;select class="form-control m-select2" id="m_select2_1" name="customerId"&gt;
                      @foreach($customer_list as $customer)
                          &lt;option value=" {{ $customer-&gt;id }} "&gt;
                          {{ $customer-&gt;fName }} {{ $customer-&gt;mName }} {{ $customer-&gt;lName }}
                          &lt;/option&gt;
                      @endforeach  
                  &lt;/select&gt;
              &lt;/div&gt;
              &lt;div class="col-lg-4"&gt;
                  &lt;label&gt;
                      Invoice Type:
                  &lt;/label&gt;
                  &lt;div class="m-radio-inline"&gt;
                      &lt;label class="m-radio m-radio--solid"&gt;
                          &lt;input type="radio" name="invoiceType" checked value="billable"&gt;
                          Billable
                          &lt;span&gt;&lt;/span&gt;
                      &lt;/label&gt;
                      &lt;label class="m-radio m-radio--solid"&gt;
                          &lt;input type="radio" name="invoiceType" value="nonbillable"&gt;
                          Non Billable
                          &lt;span&gt;&lt;/span&gt;
                      &lt;/label&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
       &lt;div id="m_repeater_1"&gt;
  
          &lt;div class="form-group row" id="m_repeater_1"&gt;
              &lt;div data-repeater-list="" class="col-lg-12"&gt;
                  &lt;div data-repeater-item class="form-group m-form__group row align-items-center"&gt;
                      &lt;div class="col-lg-4"&gt;
                  &lt;label&gt;
                      Summary Number:
                  &lt;/label&gt;
                  &lt;select class="form-control m-select2" id="m_select2_2" name="certificateId[]"&gt;
                      @foreach($certificate_list as $certificate)
                          &lt;option value=" {{ $certificate-&gt;id }} "&gt;
                          {{ $certificate-&gt;summary_no }} ( {{ $certificate-&gt;certificateType() }} )
                          &lt;/option&gt;
                      @endforeach  
                  &lt;/select&gt;
              &lt;/div&gt;
                      &lt;div class="col-lg-3"&gt;
                                  &lt;label&gt;
                                      Rate:
                                  &lt;/label&gt;
                                  &lt;input type="number" class="form-control m-input" name="rate" placeholder="Enter rate"&gt;
                      &lt;/div&gt;
                      &lt;div class="col-lg-3"&gt;
                          &lt;br/&gt;
                          &lt;div data-repeater-delete="" class="btn btn btn-danger m-btn m-btn--icon"&gt;
                              &lt;span&gt;
                                  &lt;i class="la la-trash-o"&gt;&lt;/i&gt;
                                  &lt;span&gt;
                                      Remove
                                  &lt;/span&gt;
                              &lt;/span&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="m-form__group form-group row"&gt;
              &lt;div class="col-lg-4"&gt;
                  &lt;div data-repeater-create="" class="btn btn btn-warning m-btn m-btn--icon"&gt;
                      &lt;span&gt;
                          &lt;i class="la la-plus"&gt;&lt;/i&gt;
                          &lt;span&gt;
                              Add
                          &lt;/span&gt;
                      &lt;/span&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;&lt;/div&gt;
  
  
      &lt;/div&gt;
  
      &lt;div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit"&gt;
          &lt;div class="m-form__actions m-form__actions--solid"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-lg-4"&gt;&lt;/div&gt;
                  &lt;div class="col-lg-8"&gt;
                      &lt;button type="submit" class="btn btn-primary"&gt;
                          Submit
                      &lt;/button&gt;
                      &lt;button type="reset" class="btn btn-secondary"&gt;
                          Cancel
                      &lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  &lt;!--end::Add-Invoice-Form--&gt;
  </code></pre>
  
  <p>How do I send the values in array format when multiple select box have been filed using repeater?<a href="https://i.stack.imgur.com/9OQWQ.png" rel="nofollow noreferrer">This images shows the UI for the form</a> </p>
  
  <p>Thank you</p>