title: Pass data from Modal to Laravel Controller@update
body: <p>I need to update some columns from my DB using the modal... question is how do I pass the data from the Modal to the Controller@update? I can get dynamic data to the Modal, but the form action does not appear to function. Can someone help me? I'm getting really frustrated by this.</p>
  
  <p>=( here is my code, that is generating the modal according:</p>
  
  <p>//route </p>
  
  <pre><code>Route::resource('/dashboard', 'DashboardController');
  </code></pre>
  
  <p>//DashboardController.php</p>
  
  <pre><code>public function index(Request $request)
      {
          $equipments = Equipments::all();
          $serviceProviders = ServiceProviders::all();
          $engineers = Engineers::all();
          $equipmentsDue = Equipments::Where('due1', '&lt;&gt;', '1990-01-01')
                                  -&gt;orderBy($due1)
                                  -&gt;get();
          $customerSite = CustomerSites::all();
          return view('dashboard.index', compact('sort', 'customerSite', 'equipmentsDue', 'serviceProviders', 'engineers'));
      }
  </code></pre>
  
  <p>// /dashboard/index.blade.php</p>
  
  <pre><code>@foreach ($equipmentsDue as $equipment)
      &lt;!------modal --&gt;
      &lt;div class="modal fade" id="myModal-{{ $equipment-&gt;id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"&gt;
          &lt;div class="modal-dialog" role="document"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
                  &lt;h4 class="modal-title" id="myModalLabel"&gt;Next Due&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;form class="app-form" id="modal-form" action="/dashboard/update/{{ $equipment-&gt;id }}" method="POST"&gt;
                  {{ csrf_field() }}
                  &lt;div class="form-group"&gt;
                      &lt;label for="title"&gt;Next Due*&lt;/label&gt;
                      &lt;input type="text" class="form-control" id="datepicker1" name="due1" placeholder="Next Due"&gt;
                  &lt;/div&gt;
                  &lt;div class="row"&gt;
                      &lt;div class="col-xs-6"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="title"&gt;Completed By:&lt;/label&gt;
                              &lt;!-- Service Provider --&gt;
                              &lt;select name="note1" class="form-control" id="note1"&gt;
                                  @foreach ($serviceProviders as $serviceProvider)
                                      &lt;option value="{{ $serviceProvider-&gt;id }}"&gt;{{ $serviceProvider-&gt;name }}&lt;/option&gt;
                                  @endforeach
                              &lt;/select&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="col-xs-6"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;!-- Engineer --&gt;
                              &lt;label for="title"&gt;Engineer&lt;/label&gt;
                              &lt;select name="note2" class="form-control" id="note2"&gt;
                                  @foreach ($engineers as $engineer)
                                      &lt;option value="{{ $engineer-&gt;id }}"&gt;{{ $engineer-&gt;name }}&lt;/option&gt;
                                  @endforeach
                              &lt;/select&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="row"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="col-xs-12"&gt; 
                              &lt;label for="title"&gt;Comments:&lt;/label&gt;
                              &lt;textarea name="note3" class="form-control" id="note3" placeholder="comments"&gt;&lt;/textarea&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;      
                  &lt;div class="modal-footer"&gt;
                      &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
                      &lt;button type="submit" class="btn btn-default" data-dismiss="modal"&gt;Save&lt;/button&gt;
                  &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- modal ends--&gt;  
      &lt;tr class="alert-danger"&gt;
          &lt;td&gt;&lt;input type="checkbox"&gt;&lt;/td&gt;
          &lt;td align="center"&gt;{{ date("d-m-Y", strtotime($equipement-&gt;due1)) }}&lt;/td&gt;
          &lt;td align="center"&gt;&lt;button type="button" class="btn btn-danger btn-xs"&gt;TMU&lt;/button&gt;&lt;/td&gt;
          &lt;td&gt;{{ $equipment-&gt;CustomerSites-&gt;customer-&gt;name . " -&gt; " . $equipment-&gt;CustomerSites-&gt;sitename }}&lt;/td&gt;
          &lt;td&gt;{{ $equipment-&gt;CustomerSites-&gt;SiteRegions-&gt;name }}&lt;/td&gt;
          &lt;td&gt;{{ $equipment-&gt;sn  }}&lt;/td&gt;
          &lt;td&gt;{{ $equipment-&gt;cap  }}&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td&gt;&lt;button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#myModal-{{ $equipment-&gt;id}}"&gt;COMPLETE&lt;/button&gt;&lt;/td&gt;
      &lt;/tr&gt;
      @endif
  @endforeach
  </code></pre>
  
  <p>This correctly generates the table and the modal:</p>
  
  <p><a href="https://i.stack.imgur.com/BqfsM.png" rel="nofollow noreferrer">Modal</a></p>
  
  <p>The URL for the </p>
  
  <p>Why the Form action dashboard@update does not call?</p>