title: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'product_id' cannot be nul on laravel and VUE JS
body: <p>i try to save data using vue.js form and laravel,, but i getting error like this</p>
  
  <pre><code>SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'product_id' cannot be nul
  </code></pre>
  
  <p>this is my controller..</p>
  
  <pre><code> public function order(Request $request, $id)
  {
      $data['id'] =  $request-&gt;input('product');
      $data['product_id'] = $request-&gt;input('product_id');
      $data['product_site_id'] = $request-&gt;input('product_site_id');
      $data['qty'] = $request-&gt;input('qty');
      $data['qty_booking'] = $request-&gt;input('qty_booking');
      $data['qty_order'] = $request-&gt;input('qty_order');
      $this-&gt;productStockRepository-&gt;create($data);
      return true;
  }  
  </code></pre>
  
  <p>and this is my form binding vue.js</p>
  
  <pre><code>    &lt;input type="hidden" :name="'product[' + buy_data.id + '][id]'"  :value="buy_data.id"&gt;
  &lt;input type="hidden" :name="'product[' + buy_data.id + '][product_id]'" :value="buy_data.id"&gt;
  &lt;input type="hidden" :name="'product[' + buy_data.id + '][product_site_id]'" :value="buy_data.id"&gt;
  &lt;input type="hidden" :name="'product[' + buy_data.id + '][qty]'" :value="buy_data.qty"&gt;
  </code></pre>
  
  <p>plis help where wrong with my code... thannks</p>