title: Laravel modify array request
body: <p>im new using laravel and i get a problem.
  and there is my var_dump (post request)</p>
  <pre><code>+request: Symfony\Component\HttpFoundation\ParameterBag {#44 ▼
  #parameters: array:12 [▼
    &quot;_token&quot; =&gt; &quot;R1fnZMtNA55fy1plkTuztuhMZ1ExvkSw01GJq4rN&quot;
    &quot;spg&quot; =&gt; &quot;test&quot;
    &quot;nama&quot; =&gt; &quot;Reynaldo&quot;
    &quot;alamat&quot; =&gt; &quot;123&quot;
    &quot;hp&quot; =&gt; &quot;2134&quot;
    &quot;ccs&quot; =&gt; &quot;1&quot;
    &quot;cos&quot; =&gt; &quot;2&quot;
    &quot;oss&quot; =&gt; &quot;Qty&quot;
    &quot;tvs&quot; =&gt; &quot;Qty&quot;
    &quot;tcs&quot; =&gt; &quot;Qty&quot;
    &quot;lngs&quot; =&gt; &quot;Qty&quot;
    &quot;tks&quot; =&gt; &quot;Qty&quot;
  ]
  </code></pre>
  <p>this if my HTML form:</p>
  <pre><code>@foreach ($products as $product)
  
          &lt;div class=&quot;form-group row col-md-12&quot;&gt;
              &lt;label for=&quot;{{ $product-&gt;slug }}&quot; class=&quot;col-sm-3 col-form-label&quot;&gt;{{ $product-&gt;nama }}&lt;/label&gt;
              &lt;div class=&quot;col-sm-7&quot;&gt;
                  &lt;select class=&quot;custom-select col-sm-2&quot; name=&quot;{{ $product-&gt;slug }}&quot; required&gt;
                      &lt;option hidden&gt;Qty&lt;/option&gt;
                      &lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
                      &lt;option value=&quot;2&quot;&gt;2&lt;/option&gt;
                      &lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
                  &lt;/select&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          @endforeach
  </code></pre>
  <p>the problem is, how can I modify post request (add array and don't send 'qty' value)?
  i want to look like this :</p>
  <pre><code>+request: Symfony\Component\HttpFoundation\ParameterBag {#44 ▼
  #parameters: array:12 [▼
    &quot;_token&quot; =&gt; &quot;R1fnZMtNA55fy1plkTuztuhMZ1ExvkSw01GJq4rN&quot;
    &quot;spg&quot; =&gt; &quot;test&quot;
    &quot;nama&quot; =&gt; &quot;Reynaldo&quot;
    &quot;alamat&quot; =&gt; &quot;123&quot;
    &quot;hp&quot; =&gt; &quot;2134&quot;
    product array [
    &quot;ccs&quot; =&gt; &quot;1&quot;
    &quot;cos&quot; =&gt; &quot;2&quot;
    &quot;oss&quot; =&gt; &quot;Qty&quot;
    &quot;tvs&quot; =&gt; &quot;Qty&quot;
    &quot;tcs&quot; =&gt; &quot;Qty&quot;
    &quot;lngs&quot; =&gt; &quot;Qty&quot;
    &quot;tks&quot; =&gt; &quot;Qty&quot;
    ]
  ]
  </code></pre>
  <p>very grateful if someone helps. sorry for my broken English.
  thankyou.</p>